O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a distributable application from NetBeans

When we've developed our application, we want to get it out of the IDE and into our customer's hands as soon as possible. Fortunately, NetBeans makes it very easy to create an executable .jar file that we can distribute to our customers.

Getting started

To complete this recipe, we need to have the JarViewer project that was created in the Responding to events recipe. If you have not completed this recipe, the source code is available with the code download bundle for this chapter.

How to do it…

When NetBeans builds an executable .jar file for a desktop GUI application, it adds all the necessary references to any external libraries that are required and bundles those with the application. Since our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required