.exe files

1 reply [Last post]
Duke777's picture
Offline
Last seen: 16 weeks 1 day ago
Joined: 04/30/2010
Posts:

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.

Duke777

tim.speed's picture
Offline
Last seen: 17 hours 24 min ago
Joined: 02/24/2010
Posts:
If by exe you mean jar. This

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