|
Re: How to write an exe file for a java project?
|
Posted: Apr 26, 2005 10:47 PM
|
|
A jar file is basically a ZIP file with another extension.
Use the command jar.exe in your %javahome%\bin directory.
If java is instqlled correctly, you don't need a exe file. Double click on the jar file.
But: the jar file must contain a file named META-INF\MANIFEST.MF This file must contain the line "Main-Class: YourMainClass" If this line is the last one in the Manifest file, don't forget to add an additional empty line.
If you want to create an exe file: Java does not offer the possibility to create .exe files. There are some tools, however, wich create one. I use "exe4j", the current version should be 3.0.2 The free version is like the full version, only that it adds a hint window at program start.
|
|