.exe files
Thu, 09/30/2010 - 23:49
Hi there,
One of the main reasons I've been using Compilr is because it allows me to download Java .exe files, which I don't know how to create. I haven't been successful at finding a good tutorial online, so could anyone help me? I know this kind of beats the purpose of me using the site, but I would like to be able to create executables even without internet access.
If by exe you mean jar.
This might help:
http://www.skylit.com/javamethods/faqs/createjar.html
The process involves compiling your Java code into class files with javac
then creating a Manifest file to specify your main class. "The entry point for your application", the one that contains the static main method.
Then you point the jar tool to the manifest and class files, and it bundles that all into a jar for you.
A jar is pretty much just an archive of class files with a pointer to the one that should start the "Application".
-----------------
Tim Speed
Compilr Developer and CTO