Reputation: 1482
One of my plugins uses a library (jar file).
What am I missing?
Upvotes: 3
Views: 2247
Reputation: 31623
Welcome to the wonderful world of OSGi! :D
You have two options:
You can go the OSGi way and repack your JAR in an OSGi bundle. This is clean and recommended in the sense of OSGi, since all code should be packaged in OSGi bundles (which in you case are called Eclipse plugins). However, this means additional work and I personally do not like it.
Put the JAR file to the root (or a folder called lib
) of your bundle and add a Bundle-ClassPath
entry to your manifest:
Bundle-ClassPath: .,lib/library.jar
Upvotes: 9