Hi Thomas: Yes, i'm using equinox, but I was not sure wether it was my problem or not. I'm a noob here really, I'm aware I don't even know 10% of what should be known about OSGi...
On 16 June 2010 15:40, Thomas Watson <[email protected]> wrote: > Hi Asier, > > I am not sure what you needed to modify in the config.ini to make this > work. The framework should detect the level of VM you are on and export the > javax.swing packages if the VM provides it (e.g. J2SE-1.4, JavaSE-1.5 etc). > If you bundle uses Import-Package: javax.swing and gets resolved to the > export from the system bundle then your bundle must be able to load a class > from the javax.swing package. If you have a simple example it may be worth > opening a bug against the framework implementation you are using. It looks > like you are using Equinox. > > Tom > > > > [image: Inactive hide details for Asier Aranbarri Beldarrain ---06/16/2010 > 08:30:37 AM---Shame on me, i've already found the solution :]Asier > Aranbarri Beldarrain ---06/16/2010 08:30:37 AM---Shame on me, i've already > found the solution :X > > > From: > Asier Aranbarri Beldarrain <[email protected]> > To: > OSGi Developer Mail List <[email protected]> > Date: > 06/16/2010 08:30 AM > Subject: > [osgi-dev] Re: javax.swing problems > ------------------------------ > > > > Shame on me, i've already found the solution :X > > I just had to modify the config.ini file so that I can use javax.swing! > > > > On 16 June 2010 14:04, Asier Aranbarri Beldarrain > <*[email protected]*<[email protected]>> > wrote: > > Hi everyone: > > I have a Java application which uses javax.swing for creating the > JFrame, JButtonGroups, etc... That is, a GUI. > > I tried to implement it as an independent OSGi bundle and everything > seems correct till.. it tries to use JFrame from javax.swing. > > The error it gives me is the next:* > > java.lang.ClassNotFoundException: javax.swing.JFrame* > > I have the "javax.swing" package as one of the imported packages on my > manifest file, but still nothing. I even tried to add manually rt.jar > (which > has inside the javax.swing package), but nothing (I know, i know, that's > not > the ideal solution but I tried aswell). > > I don't have any idea of why this error keeps going, so any help would > be appreciated. > > Thanks, > > Asier > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev >
<<ecblank.gif>>
<<graycol.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
