• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Should I delete the meta-info directory in the final jar file

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
" All elements should be packaged in a single jar file."
When I create the jar file by jar, it automatically generated a meta-info directory, should I delete it?
 
Michael Hartman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. The META-INF is created automatically by the jar tool itself. It contains the manifest file that can be used to describe the contents of the jar file itself. It is okay to leave it in the jar. For the application jar, you'll need to specify the Main-Class attribute so the jar becomes executable from the command-line like this: java -jar <application.jar>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic