Problem:
I'm making eclipse plugin and need to use external jars.
What I did:
I maked folder lib where I added all needed jar and added them to the build path, but it's probably not enought, I found that I have to added them somehow to the plugin project dependencies, but I couldn't find how to add them in Eclipse.
I use Eclipse 4.3.1 Kepler.

So I need use in my plugin something like foo.jar in which is fooClass.class.

有帮助吗?

解决方案

Open the plugin.xml editor and select the Runtime tab. Add the jars to the Classpath section (bottom right).

This will add the jars to the Bundle-ClassPath entry in the MANIFEST.MF and will update the build.properties file to ensure the jars are included in the plugin.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top