Using the Jar Tool (tutorial link)

First I assume you have placed all of your code into a single folder. You can have sub folders for your JavaDoc or your source files, I'm just assuming that we start at the top level of a folder.

Example folder named FirstFrame:

Example jar command:

jar  -cvfm  appJar.jar  main  *.class  Test

The -cvfm are options:

appJar.jar is the file name for the new archive. (The name can be anything but should have a .jar extention.)

main is the name of the text file with the manifest information. (The name can be anything but the file must be a plain text file.)

*.class and Test are the files/folders to include in the archive.

Note: If the fm options are listed in this order, the file name must precede the manifest option file name.

The manifiest option file includes the following:

This additional information specfies what class file contains the main() method that should start the program. When you enter this line make sure you press a carriage return at the end of the line!