|How do I wrap jars in a plugin? [message #336804]
||Fri, 03 July 2009 07:47
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM|
I have a jar file that I would like to wrap in a plugin which in turn
exports the packages of that jar file.
I've put my jar on the plugin classpath and updated the build path to export
the jar. I've added all the packages to the Exported-Packages header in the
manifest. Now other projects can import those packages and build...all good
so far...as long as I keep it as a project in my workspace.
But I don't want it as a project in my workspace...I want to export it to a
plugin (or OSGi Bundle to be precise) and put it in my target environment.
If I do so, my dependent plugin projects doesn't build anymore. I can still
import the packages, but the actual classes can not be found (In JDT:
<classname> can not be resolved to a type).
I've heard something about wrapping jars in jars could mean problem so I
tried unzipping my jar and adding the contents as a Class Folder to the
build path, but this way I can't even export my packages.
Please help me, this is driving me crazy...