On 8/14/11 13:59, Michael Arndt wrote:
Hi,
I'm trying to start a Project with several bundles from Eclipse. One of
these bundles has to use Swing, but uppon starting this bundle I get
java.lang.NoClassDefFoundError: javax/swing/JPanel.

Typically, you only get a NCDFE if the bundle is loading a class that depends on the target class, but doesn't have access to it. Double check which bundle is reporting the error.

-> richard

I'm using the Plugin from http://code.google.com/p/felix-eclipse/ to
start felix and the bundles. The Package which requires Swing has
Import-Package: javax.swing in its MANIFEST.MF.
The Target Plattform was created from a blank Plattform and includes
...felix.main, felix.shell and felix.shell.tui and the environment has
been set to JavaSE-1.6.
The Runconfiguration has all Bundles activated and the execution
environment has been set to JavaSE-1.6 as well.

How to allow access to javax? All examples I could find rely on Maven,
which I cannot use for this project.

Thanks,
Michael Arndt



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to