In Windows XP making a shorcut to java jar file

Status
Not open for further replies.

ravi.xolve

Broken In
I have got a jar file. I want to make a shortcut for it so that the jar is executed by the command:

"java -jar <jarfile>"

on clicking the shortcut. I tried creating the new shortcut in explorer and typing the above command, it didn't work.
 

dheeraj_kumar

Legen-wait for it-dary!
the right syntax is:

"c:\<path of java.exe>\java.exe" -jar <entire path of jarfile>

and in the start in box, put the entire path of the jar file within quotes, without the filename.
 
Status
Not open for further replies.
Top Bottom