File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MANIFEST needed in submission.jar?

 
Andy Jung
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

when packaging all the stuff in the submission.jar a default MANIFEST is created.
Is this really needed for submission.jar or can it also be deleted?

Kind regards,
Andy
 
Roel De Nijs
Sheriff
Posts: 9098
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't delete it from my submission jar
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Andy Jung
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roel De Nijs
Sheriff
Posts: 9098
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raf,

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.

Kind regards,
Roel
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh true. I haven't got to that part, yet. Sorry for the confusion.
 
Andy Jung
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... no problem at all
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just kept the MANIFEST.MF file in the runme.jar file and deleted the MANIFEST.MF file from the submission.jar file (it wasn't this name back then, but still ).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic