felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: Felix based OSGi Project with javax.swing dependency using the Eclipse-Plugin
Date Mon, 15 Aug 2011 01:26:01 GMT
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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message