Results 1 to 6 of 6
- 03-18-2009, 04:22 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 35
- Rep Power
- 0
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
- 03-18-2009, 05:45 PM #2
Member
- Join Date
- Jan 2009
- Posts
- 35
- Rep Power
- 0
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
- 03-20-2009, 08:36 AM #3
May i know why you need that?
Mak
(Living @ Virtual World)
- 03-20-2009, 04:00 PM #4
Member
- Join Date
- Jan 2009
- Posts
- 35
- Rep Power
- 0
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
- 03-20-2009, 08:59 PM #5
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)
- 03-20-2009, 10:04 PM #6
Member
- Join Date
- Jan 2009
- Posts
- 35
- Rep Power
- 0
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
[SOLVED] "start: applet not initialized"
By DenniGa in forum Java AppletsReplies: 3Last Post: 02-24-2009, 02:10 AM -
Java subprocesses via Runtime.exec() and windows "end process tree"...
By fxRichard in forum Advanced JavaReplies: 2Last Post: 01-06-2009, 03:53 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
"Jumble" or "Scramble" Program
By Shadow22202 in forum Java AppletsReplies: 8Last Post: 04-30-2008, 03:42 AM


LinkBack URL
About LinkBacks

Bookmarks