How do I make my java application excutabe.
Printable View
How do I make my java application excutabe.
Build a jar file.
what do u mean build a jar file can you expand on it. How can I make my java program executable??????/
You have to compile if first. When you get a clean compile, you execute it with the java command, like the following:
java <classname>
where <classname> is the name of the class with the main method.
If you put all the classes for the app in a jar file with a properly formatted manifest file, then you can execute the program by using the java command as follows:
java -jar <jarfilename>
The above commandline will be associated with a .jar file as the "open" command if you have installed a java JRE on your system. Ie you can execute the jar file by opening it with a double click.
Create a jar file as said by "Norm" and use JExe Creator to make an exe of the jar. It is easy to use and can be found on the "www".
It takes you through simple steps finally resulting an exe just to double click.
Happy Learning..!!
Lasitha.