Double Clicking JAR files
I am confused... up until now, I have always either compiled jars into .exe using JSmooth or run jars from a batch file.
However, I have read in several places that JAR files are supposed to be double-clickable? On my system, it just pops up with a command line and immediately goes away. Does anyone here know how (and if) you can make a jar file launch just from a click?
I am running 64 bit Windows Vista with JRE 1.6_026
Re: Double Clicking JAR files
On windows there are entries in the Registry that tell the OS what to do when a file with an extension is double clicked/openned. Many of the entries are command lines that the OS will execute when the file is double clicked.
how (and if) you can make a jar file launch just from a click?
The java installation adds an entry for .jar files. Something like this:
java -jar "%1"
where %1 is replaced by the jar file name.
It is possible to add your own command lines to the registry so that when you Right Click on a file, you get a list of choices of commandlines to execute.
I have double click set on for my WinXP. I don't know if you can set the OS to execute a file with a single click. If an icon is placed in the Toolbar at the bottom of the screen, a single click will execute it.