[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Exporting Plug-ins with external dependencies

Christian,

you should add your jar to plug-in class-path (on "Runtime" page in plug-in editor). You can also make certain packages from the jar available outside, by exporting them.

Christian Gudrian napisaÅ(a):
Hello!

Given an external 3rd party library "alice.jar" with the class "FooTask"
which implements a custom Ant Task.

Now I want to create an Eclipse Plug-in that contributes another custom
Ant Task "BarTask" (written by me) which derives from FooTask?

Here's what I did:

I created an empty Plug-in with a source folder that contains the
BarTask.java file.  I then added the external JAR "alice.jar" to the
Build Path of the project.  Building the project now works as expected.

However, when I deploy the Plug-in into a folder, the external JAR file
obviously is not added to the Build Path, since the compiler complains
that the "import cannot be resolved" and (consequently) "FooBar cannot
be resolved to a type".

What am I doing wrong?

Christian