Results 1 to 6 of 6
  1. #1
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default How do you start a Java program from the "Start" menu under Windows?

    How do you start a Java program from the "Start" menu under Windows? Obviously there is a way to set up an "icon" on the "start menu" which executes this command "java -jar .....," but I can't figure it out.

    I tried setting up a shortcut, but it apparently doesn't allow arguments (just a file name). The same is true for saying "run..." from the start menu. It doesn't allow arguments.

    It's a silly thing to be stuck on. Your help is appreciated.

    -scott

  2. #2
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default

    OK, I figured it out.
    I added a shortcut to the start menu, and made this the target:

    "C:\Program Files\Java\jdk1.6.0_11\bin\java.exe" -jar "C:\Directory\JarFile.jar"

    That works. -scott

  3. #3
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    441
    Rep Power
    6

    Default

    May i know why you need that?
    Mak
    (Living @ Virtual World)

  4. #4
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default

    Mak-
    I think it's nice to be able to start a Java program directly from the start menu, and not have to go to a command prompt first.

    This program doesn't work as an applet because it does disk i/o.

    -scott

  5. #5
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    if your os is configured to load jar files w/ java. (which is the default.) you can just use a short cut to the jar like so: "C:\Directory\JarFile.jar"
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  6. #6
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

Similar Threads

  1. Java, Military Format using "/" and "%" Operator!!
    By sk8rsam77 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 03:03 AM
  2. [SOLVED] "start: applet not initialized"
    By DenniGa in forum Java Applets
    Replies: 3
    Last Post: 02-24-2009, 02:10 AM
  3. Replies: 2
    Last Post: 01-06-2009, 03:53 PM
  4. Replies: 1
    Last Post: 10-20-2008, 07:35 AM
  5. "Jumble" or "Scramble" Program
    By Shadow22202 in forum Java Applets
    Replies: 8
    Last Post: 04-30-2008, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •