Posted on June 16, 2009 under Programming. This post currently has 8 comment(s).
Here’s a quick guide on how to setup your NetBeans IDE to create an executable JAR file output. If you’re using JCreator to create JAR file, click here.
- Once you already created your Project using NetBeans IDE, right click the project name and click Properties.
- A new window will appear, the Project Properties. On the left side, click Packaging.
- The right panel will change and check Compress JAR File and Build JAR after compiling.
- JAR file saving location is indicated at the text box labeled Jar File.
- Then, Click OK. Now, compile your project and go to the saving location and try to click the JAR to execute your application.
You can see the sample window in the screen shot below for your guidance. Thanks!

Click the image to enlarge.
Posted on April 7, 2009 under Programming. This post currently has 1 comment(s).
One of the many IDE in Java programming is JCreator and creating Executable Jar file is not instant, unlike in Netbeans you can have it automatically. In JCreator, you need to set up some configurations to have it. And here is a re-post from a site I found to create an Executable Jar file.
You can configure a “tool” that will automate the jar creation process. You only need to do it once.
1. Click on Configure/Options.
2. Click on Tools in the left column.
3. Click New, and choose Create Jar file.
4. Click on the newly created entry Create Jar File in the left column under Tools.

5. Edit the middle line labeled Arguments: it should have
cvfm $[PrjName].jar manifest.txt *.class
6. Click OK.
Now set up a project for your program, create a manifest file manifest.txt or copy and edit an existing one. Place manifest.txt in the same folder where the .class files go. Under View/Toolbars check the Tools toolbar. Click on the corresponding tool button or press Ctrl-1 (or Ctrl-n if this is the n-th tool) to run the Create Jar File tool.
With Windows Explorer, go to the jar file that you just created and double click on it to run.
Source: http://www.skylit.com/javamethods/faqs/createjar.html