Standard Java SE Project Properties Dialog Box: Packaging

Use to set up the filter for which files are included in the JAR file.

Element Description

JAR file

(read only) Shows the location of JAR files for this project (relative to your project location). The default value is your_project_location/dist.

Exclude From JAR File

Specifies the files that should be excluded from the JAR file during the packaging process.

By default, this field contains the values **/*.java, **/*.form. For example, to exclude the .properties file from the JAR file, add **/*.properties at the end of the existing value.

Compress JAR File

Compresses the resulting JAR file.

Build JAR after Compiling

Builds a JAR file from your project sources each time during compilation and places it to the specified location (see the JAR File field).

If you deselect this checkbox, the Java compiler produces only .class files, without building JAR files for the application.

Copy Dependent Libraries

Copies dependent libraries to a lib directory in the dist and adds the Class-Path attribute to the manifest.

Enabled by default in Java and JavaFX applications. Disabled by default in library projects, as it can fill up application server logs.

Binary Encode JavaFX CSS Files

(JavaFX projects only) Converts CSS files to binary form to reduce parsing overhead at application runtime. Enabled by default.


Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.