Reputation: 1391
I am running Eclipse 3.7. I am currently working on a Plug-In Project for a Application called Team Center. I was recently made aware of a jar file of SWT Widgets named Opal. So I am trying to figure out how to add the Jar File to my existing project. I have tried many different ways to do this. Nothing has worked so far.
Here are some of the things I have tried.
I have tried to create a plugin project just for the Jar File, then add the opal plugin to required Plug-ins. If the Opal project is closed, that reflects with the Opal plugin in my project.
Here is the way my current project works. It is a plug-in project and when I finish or change code.
I am assuming that somehow I have to include the opal.jar in the project.jar. But right now I am at a total lost on how to do it.
Upvotes: 2
Views: 4811
Reputation: 2137
In Eclipse Plugin Project click on your MANIFEST.MF file and go to the runtime tab. There should be a section "Classpath". Try to add your lib there.
UPDATE
I've tried it and it has worked for me. I've executed following steps:
lib
folder in itMANIFEST.MF
, go to the Runtime
tab and add the lib to the Classpath
sectionlib
folder is recognized of the build process (Build
tab and lib folder should be checked)Run
-> Run Configuration...
-> double click on OSGi Framework
)Bundles
tab check the new made project (Workspace
section) and uncheck Target Platform
for nowAdd Required Bundles
on the right sideTarget Platform
sectionApply
, then Run
and your OSGi env will be startedUpvotes: 3
Reputation: 3085
check build.properties in your plugin. check lib folder should be included there.
open plugin.xml or MANIFEST.MF in editor, you see build Tab. In the binary build, make sure your lib folder is checked.
Upvotes: 1