BundleClasspath not completely available in nested Eclipse instance [message #487403] |
Wed, 23 September 2009 06:59 |
Sandro Boehme Messages: 95 Registered: July 2009 |
Member |
|
|
Hello,
(I already asked that in the pde newsgroup but did not get any response.
Maybe you have an idea what's wrong.)
In my (stripped down) use case I have a trivial bundle ("ABundle") with
a class that calls a class from a third party jar. But I get a
"NoClassDefFoundError" if I
1. start a nested Eclipse instance from an Eclipse run configuration
2. create a new Plugin-Project in that Eclipse instance
3. put "Require-Bundle: ABundle;bundle-version="1.0.0"" into the
manifest file of the newly created project
4. create a simple class that does nothing more than calling the method
of "ABundle"'s class that in turn should call a method of a third party jar.
In the Plug-In Dependencies Folder of the project I do see the bin
folder with the abundle package. But there is no jar file.
If I do the same steps not in a nested Eclipse instance it works without
problems.
This is the complete stack trace I get in the nested Eclipse instance:
Exception in thread "main" java.lang.NoClassDefFoundError:
test3rdpartyextreference/ResolvedReference
at abundle.ABundleClass.getProperty(ABundleClass.java:8)
at TestClass.main(TestClass.java:10)
The manifest file of the "ABundle" looks like that:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ABundle
Bundle-SymbolicName: ABundle
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: abundle.Activator
Require-Bundle: org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ClassPath: Test3rdPartyExtReference.jar,
.
Export-Package: abundle
The Test3rdPartyExtReference.jar is not a bundle and contains only this
simple class:
package test3rdpartyextreference;
public class ResolvedReference {
public void printEvidence(){
System.out.println("yeah - resolved");
}
}
Any background info is much appreciated. Thanks in advance for looking
into that.
Best,
Sandro
--
Eclipse JCRM
|
|
|
Powered by
FUDForum. Page generated in 0.04483 seconds