Skip to main content



      Home
Home » Eclipse Projects » Equinox » BundleClasspath not completely available in nested Eclipse instance
BundleClasspath not completely available in nested Eclipse instance [message #487403] Wed, 23 September 2009 02:59
Eclipse UserFriend
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
Previous Topic:Can I add an extension point declaration in a fragment
Next Topic:Customizing p2 installer
Goto Forum:
  


Current Time: Tue Jul 08 04:19:27 EDT 2025

Powered by FUDForum. Page generated in 0.04458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top