QUOTE(fsloke @ 7 May, 2008 - 08:21 PM)

Why my jar file cannot double click?
I already installed the JDK, how can I make a jar file can double click without typing execute in command prompt?
[java -jar file.jar]
Thank
Does your .jar contain a manifest file ?
The manifest file says which class main() method in the package should be executed
Here is an example of a manifest file:
File name: manifestEuroStyle.mf
CODE
Main-Class: ca/pblinc/eurostyle/EuroStyle
whicch means when the .jar file is executed execute ca.pblinc.eurostyle.EuroStyle.main()
and the way to create the .jar file
CODE
jar -cmf0 manifestEuroStyle.mf EuroStyle.jar ca org jxl
the "m" means that there is a manifest file called manifestEuroStyle.mf
then the EuroStyle.jar file should contains the directory ca, org, jxl