How to launch a Java application by clicking an icon for the windows system

Hi Deal All,
I am new in this forum, I am used to be at Cryptography. Currently I have completed a Java project and I am intending to launch it from Windows.
I will design an icon but how I can launch the java application by clicking the icon in Windows system.
Great thanks for your guidence!
Best,
Your friend.

Hi Deal All,
I am new in this forum, I am used to be at
Cryptography. Currently I have completed a Java
project and I am intending to launch it from Windows.
I will design an icon but how I can launch the java
application by clicking the icon in Windows system.
Great thanks for your guidence!
Best,
Your friend.Make the icon a shortcut with a target of something like "javaw.exe YouClass.class"

Similar Messages

  • How to launch My Own Application by clicking a embedded link in iPhone

    Hi All
    Does anyone know how to launch my own application by clicking a embedded link in iPhone? same thing like you click a phone number , and then the phone application will be launched.
    Thanks
    -Tommy

    You have to place the URL types your application handles in the Info.plist - see LaunchMe's for the format.
    You'll do best opening it in a "plain text format" (right-click, open as), as it's a nested array instead of just a set of values, and it's easiest seen/modified in its native XML.

  • How Can I Minimize a VI to an Icon on the Windows System Tray?

    How Can I Minimize a VI to an Icon on the Windows System Tray?

    There are some examples available online, using both ActiveX and .NET. Try searching for "tray icon".
    It's been a while since I looked at it, but if memory serves, the structures needed to load an icon through the Win32 API are actually quite complicated and not as simple as that article makes them out to be.
    Try to take over the world!

  • How to launch my java application in a web browser?

    Hi. I try to launch my java application, e.g. "HellowWorld.java", using web browser.
    1. How can I change my java application program to java applet in general way?
    I read "Java: An Introduction to Computer Science and Programming, Third Edition"
    by Walter Savitch and found page 803 - "Converting a Swing application to an applet".
    My question is how I can know which class should be removed or not such as using JApplet instead of JFrame. Are there general rules about this?
    2. I found "AWT only" tutorial had some example lauching application using "AppletButton".
    How can I use this method to launch "HelloWorld.class"?
    http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
    (after extracting zip file) -> ../OLDui/layout/card.html
    3. (continued 2) Can I use above method to embed applet into web browser?
    For example, java Swing application -> applet using "AppletButton" -> web browser using "<applet></applet>" tag.
    I'd appreciate any partial anwers of these questions or other suggestions.
    Thanks.

    Thanks! Here is what I got from your help.
    * HelloWorldSwing.java is a 1.4 example that
    * requires no other files.
    import javax.swing.*;  
    import java.awt.*;                //for Container class    
    //  public class HelloWorldSwing {
       public class HelloWorldSwingToApplet extends JApplet {
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
    //    private static void createAndShowGUI() {
          private void createAndShowGUI() {
            //Make sure we have nice window decorations.
    //        JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
    //        JFrame frame = new JFrame("HelloWorldSwing");
    //        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container frameApplet = getContentPane();
            //Add the ubiquitous "Hello World" label.
            JLabel label = new JLabel("Hello World");
    //        frame.getContentPane().add(label);
         frameApplet.add(label);
            //Display the window.
    //        frame.pack();
    //        frame.setVisible(true);
          public void init() {
           createAndShowGUI();
    /*    public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • How to launch a java application from Microsoft SQL Server

    Hi everyone
    I noticed the following line in a trigger will launch an executable.
    EXEC master..xp_cmdshell '"C:\Program Files\SkillSets.exe"', NO_OUTPUT
    Does anyone know if this same statement will launch a java program? Or does anyone have any positive experience with that ?

    yes...
    check this basic example:
    public class GoodWindowsExec{
    public static void main(String args[]){
    if (args.length < 1){
    System.out.println("USAGE: java GoodWindowsExec <cmd>");
    System.exit(1);
    try{           
    String osName = System.getProperty("os.name" );
    String[] cmd = new String[3];
    if( osName.equals( "Windows NT" ) ){
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[2] = args[0];
    }else if( osName.equals( "Windows 95" ) ){
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = args[0];
    Runtime rt = Runtime.getRuntime();
    System.out.println("Execing " + cmd[0] + " " + cmd[1]
    + " " + cmd[2]);
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new
    StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();

  • How can I make JAVA listen to a USB device in the windows platform?

    Hello, Im trying to make a program in JAVA which gets input from a joypad but I dont know where to start.
    Im using the Windows platform. I have the joypad and driver which came with the joypad, what do I do next?
    Thanks in advance, Ant...

    Well i believe there are few JAVA APIs which might help take help
    of JNI on specific OS platforms to provide you a solution to have kind of JAVA-USB communication and refered under JSR 80.
    and below is an example of it
    http://jusb.sourceforge.net/
    and hope below articles might help better in terms of more insights.
    http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html
    http://www-128.ibm.com/developerworks/linux/library/j-usb.html
    http://www.ibm.com/developerworks/library/j-usb.html
    http://jusb.sourceforge.net/apidoc/overview-summary.html
    and if you thinking of using jUSB would be a better to start with its javadocs
    http://jusb.sourceforge.net/apidoc/usb/core/package-summary.html
    and as per your requirement usage of usb.windows pacakage is appropriate.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to start a java application by double clicking just like windows gui?

    Hi,
    I want to open the user-defined file in my java application. The way is like the notepad in windows:1.double click the file name 2.the file is opened in the java application 3.if this file has opened at the same time ,then the last opened will be read-only.
    Could you tell me how to carry it out ? Thank you
    from Maria

    !!! Please give me a help! i am thirsty for itSo, to get this straight, you have a Java application in a jar. For some reason, you do not execute this directly. Are you aware that you can execute a jar directly without the need to write a C++ exe to do it?
    Anyway, for some reason, instead you have a C++ application which launches the JVM with your jar main class.
    Well, you want to do two things. First of all, on Windows level, you need to associate the file type of your user file with your application. Note that they have to have a specific file extension that you choose. To associate the file type with an executable, you open a windows explorer, go to View, Folder Options, File Types and add an entry for your file type and specify it to open with your application. If you do not know how to do this, google for "windows associate file type with program executable" or something alike.
    Now, if you double-click one of your user files, the associated exe will open, and it will receive the file name as a command line argument. In your C++ application, you will need to pass this argument, a file name, to the Java application where you launch it.

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

  • How to allow a Java application to run on any PC without installing jdk?

    I'm doing this program that would retrieve infomation of the PC and send it to the server. In order to do that, i have to email the application to all these PCs. The problem is that some of these PCs may not have JRE or jdk to run the application. Cos, i thought that Java was Write once Run anywhere. I've tried to jar and run it on a PC with no JRE and stuff, How can this be done, I know that using applet is an option, but is there any other way. Pls help me, thanx!

    you need a java virtual machine to run a java application, either it is embedded in the browser ( a native or plug-in ) and you can run your applet in the browser, or, if you don't want your app to be an applet, you have to install a jre on the PC...no other way, i'm afraid
    so write once, run anywhere, provided there's a jre anywhere ! it is the jvm that handles differences between os, and you need to handle that difference somewhere, don't you !

  • How to schedule a java application via Windows Scheduler

    I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
    To execute FileCopy.class, my best guess was:
    Start | Control Panel | Performance and Maintenance | Scheduled
    Tasks | Add Scheduled Task | Browse | Program Files | Java |
    jre1.5.0_06 | ... Advanced Properties
    Under the Task tab:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
    FileCopy"
    This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
    TIA,
    John

    Suppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
    And yes you must provide a user password to execute the task.
    Best way to do this is to create a special user (with password) for executing this task.
    Regards

  • Launching a java application in another PC

    Hello everybody
    I want to know what to do if I want to launch a java application in a new PC which has anything installed in it.
    Thanks

    My problem is that if there is a new PC , nothing installed in it, can I launch a java application in it ?
    My friend asked me if I can build an application in java which I can use in any PC and the application will do something like an installation. In fact he wants to know if java can build an installation like application which will install for example a software on a new PC.
    I think I told you more clearly the situation.

  • Under Options , Applications There are multiple entries for the same item (Acrobat Document). how can I delete the duplicates?

    Under Options, Applications there are multiple entries for the same item. (Adobe Acrobat) . Three show Adobe Acrobat Reader 9.3 and the other shows (ask) or (save file) with no ability to select Acrobat Reader . Is there a way to edit this list to remove the duplicates and
    the incorrect entry? Adobe installed a very quick update today.

    They are all different. Hover your mouse pointer over each of the "Content Type" descriptions and you should see a "tooltip" to see that each has a different description.
    You need to update your plugins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Adobe Shockwave for Director Netscape plug-in, version 11.5 (you '''<u>may</u>''' need to update)
    * Shockwave Flash 10.1 r53
    * Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #Check your plugin versions: http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from the link in article below
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download link and other information</u>''': https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • HELP. Window pops up on Firefox browser that says JavaScript Application, and under that it says 101. There is an OK bitton. when I click OK, up comes the window again and again.

    HELP. Window pops up on Firefox browser that says JavaScript Application, and under that it says 101. There is an OK bitton. when I click OK, up comes the window again. Then after hitting OK again and box goes away, when I move my mouse the box comes up identically again. I even called Apple support. They tried things; told me it may well be some set'''bold text'''ting in Firefox Preferences. This started right after Mac Update Install upon closing. Any help, please. My browser is totally (obviously) stuck in this loop!!! [email protected] jason

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.

Maybe you are looking for

  • How Can I Make The Corner of My Clips Curve Instead of Square (Suzuki Clip)

    I need to make the *corners of my clips rounded* instead of square (Like the *Suzuki commercial* example in FCP Training DVD)I have looked everywhere in the manual and in Motion. I have search YouTube as well. does anyone here know how to do that? Th

  • Applying logs in a semi-standby instance

    Oracle Version: 10.2.0.3 Standard Edition OS: Windows 2003 Server I setup oracle standby (followed the steps in metalink doc 432514.1).. I am running 10.2.0.3 standard edition.. so teh standby have to be done manually (which is fine).. I shutdown pro

  • Lightroom won't install - Why?

    My LR2 refuses to be installed. Every time the process is about halfway, it stops with the following text: "The file 'lightroom.exe' is not marked for installation". Any ideas on what I should do (apart from trying to get a refund) ? gw

  • How to consider an object as Line Item Dimension?

    Can I have the formula for Line Item Dimension? I know basic idea like If the LID is more than 20% of the fact table then we consider as LID but how can we say that the object having more than 20% than Fact table?

  • Programmatically subnet

    is there a way to programmatically retrieve TCP/IP infomration...IP address, subnet mask, gateway. Basically all the info that you get with the ipconfig command, but without using the Command screen?