How are you launching the framework? With "java -jar bin/felix.jar"? If
so, it should be exporting javax.swing from the system bundle by
default. You could try to remove your "version>=1.6.0" just in case.
-> richard
On 10/12/09 17:16, Niko_K wrote:
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.SimulationRuntimeActivator
Bundle-Classpath: .
Export-Package: de.krismer.simulation.core.SimulationRuntimeService
Import-Package: org.osgi.framework;version="1.0.0",
javax.swing;version="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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]