Specify the parts of this project to archive

This is a feature of JBuilder Professional and Enterprise.

This step of the Archive Builder is where you choose what parts of the project are included in the archive. In this step, you can also choose additional classes or files.

Include Required Classes And Known Resources

This option adds any classes that you have specifically added to your archive with the Add Classes button. It also adds any classes that are used by one or more of the added classes.

Important: If you do not add any classes with the Add Classes button, your archive won't contain any classes.

This option also adds known resources. Known resources are those that you specifically add to the archive with the Add Files button.

Include Required Classes And All Resources

This option adds any classes that you have specifically added to your archive with the Add Classes button. It also adds any classes that are used by the added classes.

Important: If you do not add any classes with the Add Classes button, your archive won't contain any classes.

This option also adds all resources in the project's source path, such as images, video clips, sound files, etc. You can also change JBuilder's default settings for resources and specify individual files or file extension types to be copied to the output path with the class files during compile. See the "Selective resource copying" topic in "Compiling Java programs."

Always Include All Classes And Resources

This option gathers all classes on your project's outpath. The outpath is defined on the Paths page of the Project Properties dialog box. Usually, this is set to the classes directory of your project.

It also gathers all resources on the project's source path, also set on the Paths page of the Properties dialog box. Usually, this is set to the src directory of your project. Resources are files other than class files, such as images, video clips, sound files, etc. You can also change JBuilder's default settings for resources and specify individual files or file extension types to be copied to the output path with the class files during compile. See the "Selective resource copying" topic in "Compiling Java programs."

For all archive types, this option is on by default. This option is the safest, as it gathers:

Caution: If you select this option, every class file in your output path is included in the JAR file. Be aware that generating a JAR with this option could take some time and become very large.

Add Classes

The Add Classes button displays a dialog box, where you select a class or classes to add to your archive. The class does not have to be in your project's outpath. If you choose either the Include Required Classes And Known Resources or the Include Required Classes And All Resources options, the Archive Builder scans these added class files for additional class dependencies and puts those classes in the archive.

Add Files

The Add Files button displays a dialog box, where you choose the file or files to add to your archive. The file must be in your project's source path. Use this option to add miscellaneous files in your archive, such as resources (.gif, .jpg, and audio files), property files, database drivers, or archived documentation (.html, readme.txt).

Note: The Add Files dialog cannot look inside archive files. If a file or package you need is inside an archive file, extract it first to your source folder, then add it using the Add Files button.

Remove

Removes the selected class or file from the list.