Friday 14 September 2007

How to make a JAR file?

Java is becoming popular as the days go by, however there is one problem. To execute java code, you need to run an java IDE, compile, and then run. With C/C++, its easy. You can make an executable and run it anywhere. Here is the easiest way to make a jar file:

  • Download Blue J IDE (just google bluej and download)
  • Open your java project with BlueJ
  • Under File Menu, select Create a Jar...
  • Select your main method for the jar file. You can also select to either source code or source libraries.
  • Select a file name and your done!

If you want to just double click on a JAR file and wanting it to run, just like any other exe, you must download Java Run Time Environment first. Just google it and download. Enjoy!

No comments: