Modifying a Manifest File

The u option is covered in the section called Updating a JAR File.
jar cmf manifest-addition jar-file input-file(s)
The options and arguments used in this command:

The c, m, and f options can appear in any order, but there must not be any whitespace between them.

Example

To indicate which class is the project's entry point, add a Main-Class header to the JAR file's manifest. The header takes the form:

Main-Class: classname
The header's value, classname, is the name of the class that's the project's entry point.
Main-Class: Main
jar cmf mainClass <project_name>.jar class
where class is the directory with your class files.
java -jar <project_name>.jar

Warning: The manifest text file must end with a new line or carriage return.

I have success only with jar files whose Main-Class (e.g., teamname.projectname.Main) is at the top level of the jar (e.g., not inside a directory, such as class).