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.
Tags: Creating JAR file, executable jar file, jar file, Java JAR File, NetBeans IDE




JC commented last July 1, 2009 at 11:48 am