How to make a Jar file…

Index


Please refer to Jar documentation under JDK for an explanation of the different Jar options. Select Build/Make Jar… to display the Make Jar dialog as shown below. This dialog is a modeless dialog.

Make Jar is automatically enabled for create a Jar and this option cannot be taken off. All the other options are self-explanatory. Custom options will let you add a custom option, which will be appended to the end of the command before all the file names are appended to the jar command. Since Add File… button will let you pick only the files custom option can be used to add an entire directory recursively. Please make sure to check the custom options check box for the custom option to be valid.

Add File will allow selection of class files or any kind of files for adding to the jar. The filenames will be passed relative to the output file directory. Start button is not enabled until an output archive file name is picked. Manifest files are needed for creating a Java bean. Please refer to How to make a Java Bean for more details on the manifest file.

Selecting Start button will start the command and the output from the command can be observed in the output window.

Delete will delete any files selected in the files list control.

Clear All will clear all the options from the dialog box.