I'm guessing that you have to specify some launch configuration in PDE. I'm
also guessing that your current config only makes your target container
(felix) export a handful of core java packages (java.lang, java.io,
java.util) and the osgi framework packages. Note the guessing part of this.
:)

Reading this: http://code.google.com/p/felix-eclipse/wiki/HowItWorks

makes me think that felix-eclipse does it's own launch config that makes it
behave differently than if you were to run your bundle in a
felix-distribution. You probably need to change the launch config from PDE
or felix-eclipse.

Regards,
Per-Erik Svensson

On Mon, Aug 15, 2011 at 3:26 AM, Richard S. Hall <[email protected]>wrote:

> 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/<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<[email protected]>
>> For additional commands, e-mail: [email protected]
>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@felix.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to