Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse: export tool

 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i want to include neccessary jars into my main application. eclipse offers Export->Jar for that. my aim is to deliver one jar, where the user does not need to include any jars into classpath.

eclipse export therefore packs used libraries into lib/ directory, but it does not put any classpath entries into MANIFEST.mf, so the libraries are not included into the classpath.

am i doing something wrong through the export dialog or do i need to add included libraries into MANFIEST.mf manually?

thanks.
 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just read that unless you implement a special classloader other jars inside a jar you cannot use these libs.

it seems that eclipse doesn't offer Class-path: option for it does not know where to find these jars in production delivery anway.
so i need to type in long ugly .jar names in a custom MANIFEST.MF .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic