Manifest.txt location: /Dropbox/workspace/commonDenom/bin Class location: /Dropbox/workspace/commonDenom/bin/commonDenom/ Class names:
commonDenom.class
UserInterface.class
Manifest.txt content (with two trailing blank lines):
Main-Class: commonDenom.UserInterface
(blank line)
(blank line)
Then in terminal I perform the following:
cd /Dropbox/workspace/commonDenom/bin
jar cfm commondDenom.jar Mainfest.txt *
jar tf commonDenom.jar
The output is as follows:
META-INF/
META-INF/MANIFEST.MF
Manifest.txt
commonDenom/
commonDenom/.DS_Store
commonDenom/commonDenom.class
commonDenom/UserInterface.class
Why isn't commonDenom/UserInterface.class the first line if that's the one I've designated as the Main-Class in the manifest? Is something wrong with the syntax of Manifest.txt?