I am trying to develop a bundle with bluetooth support (listening + publish)
using netbeans (ubuntu)
I have created a Maven | OSGi bundle and then i added this to pom.xml:
<dependency>
<groupId>net.sf.bluecove</groupId>
<artifactId>bluecove</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>net.sf.bluecove</groupId>
<artifactId>bluecove-gpl</artifactId>
<version>2.1.0</version>
</dependency>
to the dependencies element.
I also created a service to be registered and launched during bundle start
in order to be listening
bluetooth channel.
In the service I have just (for now) did this:
import javax.bluetooth.*;
import javax.microedition.io.*;
and
try
{
LocalDevice localDevice = LocalDevice.getLocalDevice();
}
catch(Exception ex)
{
}
When i register and start the bundle (and service) I see this:
g! start 15
org.osgi.framework.BundleException: Unable to resolve com.mycompany.BTBundle
[15](R 15.0): missing requirement [com.mycompany.BTBundle [15](R 15.0)]
osgi.wiring.package; (osgi.wiring.package=com.ibm.oti.connection) Unresolved
requirements: [[com.mycompany.BTBundle [15](R 15.0)] osgi.wiring.package;
(osgi.wiring.package=com.ibm.oti.connection)]
g!
If I comment the line:
LocalDevice localDevice = LocalDevice.getLocalDevice();
Everything works fine...
Any help, please?
Imo
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Felix-Bkuetooth-Missing-requirement-tp5016686.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]