so i added pccom.jar and blue cove.jar to the build path of my project in eclipse but when i run the program.
this program :
- Code: Select all
import lejos.pc.comm.NXTComm;
import lejos.pc.comm.NXTCommFactory;
import lejos.pc.comm.NXTInfo;
public class BlueToothClass {
public static void main(String [] args) throws Exception {
NXTComm nxtComm = NXTCommFactory.createNXTComm(NXTCommFactory.BLUETOOTH);
NXTInfo[] nxtInfo = nxtComm.search("NXT");
}
}
it gives me these errors:
- Code: Select all
Native Library bluecove not available
Exception in thread "main" lejos.pc.comm.NXTCommException: Bluetooth stack not detected
at lejos.pc.comm.NXTCommBluecove.search(NXTCommBluecove.java:54)
at BlueToothClass.main(BlueToothClass.java:12)
Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available
at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:434)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at lejos.pc.comm.NXTCommBluecove.search(NXTCommBluecove.java:45)
... 1 more
and on that page i found they also said i needed to remove classes.jar but then i couldn't do anything with java and i couldn't even remove it?
so could you maybe help me ?
Thanks!
I'm using mac osx 10.7.4

