Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes IDEs, Version Control and other tools and the fly likes eclipse: export tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse: export tool " Watch "eclipse: export tool " New topic

eclipse: export tool

manuel aldana
Ranch Hand

Joined: Dec 29, 2005
Posts: 308

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, 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 manually?


aldana software engineering blog & .more
manuel aldana
Ranch Hand

Joined: Dec 29, 2005
Posts: 308
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 .
It is sorta covered in the JavaRanch Style Guide.
subject: eclipse: export tool
Similar Threads
What is the difference between including jar files in Lib folder and the Java Build Path of Eclipse
Eclipse: What, exactly, does the "Add External Class Folder" button really do?
how to save all the eclipse settings for importing projects
ECLIPSE, ANT and generating WAR files...
using jar export in Eclipse 3.0