My bundle references javax.swing.UIManager explicitly.
I tried to add it to my bundle's manifest file, but now i get a
"org.osgi.framework.BundleException: Unresolved constraint in bundle [1]:
package; (&(package=javax.swing)(version>=1.6.0))".

My manifest file looks like this:
<code>
Manifest-Version: 1.0

Ant-Version: Apache Ant 1.7.1

Created-By: 14.2-b01 (Sun Microsystems Inc.)

Bundle-Name: JSimulation Core Runtime

Bundle-Description: Bundle that registers the main GUI

Bundle-Vendor: Apache Felix

Bundle-Version: 0.1

Bundle-Activator: de.krismer.simulation.core.SimulationRuntimeActivato
r

Bundle-Classpath: .

Export-Package: de.krismer.simulation.core.SimulationRuntimeService

Import-Package: org.osgi.framework;version="1.0.0", javax.swing;versio
n="1.6.0"
</code>

Where is the problem and how can i fix it?

Regards,
Niko


Richard S. Hall wrote:
> 
> Bundles only have access to java.* package and what they explicitly
> import.
> 
> Is your bundle explicitly referencing javax.swing.UIManager? If so, then 
> make sure your bundle is importing javax.swing.
> 
> If your bundle does not explicitly reference it, then it might be a boot 
> delegation issue.
> 
> -> richard
> 

-- 
View this message in context: 
http://www.nabble.com/Error-starting-bundle---ClassNotFoundException--%3E-for-javax.swing.UIManager-----tp25826275p25857475.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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

Reply via email to