One of my requirements was to be able to call the application with 'java -jar runme.jar [mode]'. I believe that I must have the manifest with the Main-Class set correctly. Maybe you have the same requirement?
posted 10 years ago
Raf Szczypiorski wrote:Maybe you have the same requirement?
... yes, I have the same requirement. For runme.jar a MANIFEST is needed, since it is an executable, but this is apparently not true for submission.jar, which contains the runme.jar and all other documents just for submission purposes.
You must create 2 jars: a runme.jar and a submission jar. The 1st one will have to be execute with the -jar option, so that one will need a MANIFEST indicating the main class. Not providing it, will lead to automatic failure, because your runme.jar becomes quiet useless. For the submission jar (containing all the files needed for your submission) a MANIFEST is not needed, so you can delete it.