[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.pde] Re: transitives dependencies

Eric Rizzo escribió:
On 9/16/09 7:54 AM, Rodrigo García wrote:
Hi,

I have a plugin (1) that depends on a jar, then I have another plugin
(2) with the plugin 1 as dependency. I want to use a class from the jar
in the plugin 2, then I have added the corresponding packages of the jar
to the exported packages list from the 1 plugin manifest, but I can't
make the import of the class.

What can I do? any idea? should I make the jar as plugin?

In this case, I'd say yes, make the JAR into it's own bundle/plug-in. I usually do this as soon as more than one plug-in needs to depend on the JAR.


Hope this helps,
Eric


I have made some changes in the classpath and now I can import the class of the jar, the app works as an eclipse instance, but when I export the product I have noclassdeffound error with some classes of the jar. The jar is included in the manifest classpath and the packages of the jar in the exported packages section, and they are included in the build.properties.


Any idea? I think it shouldn't be necessary to make the JAR into a plugin because it's a third part jar, and I don't want to include as dependency to the other plugin.

Thanks