File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 .
I agree. Here's the link:
subject: eclipse: export tool
It's not a secret anymore!