Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Advanced Java

CSYS2413

3 credits

Create a JAR file for a Java Application

How To

Create a Manifest Update file

Step 2

Next, Create a text file that will be used to update the default manifest file that was created in the previous step.

The file can be called anything you would like. I will call the file update.txt for this example.

The file update.txt should contain two lines:

Main-Class: Labxx
Sealed: true

'Labxx' on the first line of the update.txt file should be the name of the class file in your JAR that contains the main method. The class extension should NOT be included!!!

It is EXTREMELY important that you press the enter key after you type every line!!! The way the JAR parser works is that if there is not a CR/LF (enter key) after the last line it will be ignored.