problem in bluetooth programming in java
-
hi i have the below code to start bluetooth over PC to accept data from mobile but when i compile i will get the following errors i have widcom bluetooth stack and bluecove.jar and intelbth.dll(i placed this in system32)
/** * * @author manjunath */ public class PC_Bluetooth implements Runnable { private LocalDevice m_LocalDevice; String connectionURL = "btspp://localhost:393a84ee7cd111d89527000bdb544cb1;" + "authenticate=false;encrypt=false;name=RFCOMM Server"; StreamConnectionNotifier server = null; StreamConnection conn = null; public Thread t1 = null; public void startServer() { if (t1 != null) return; t1 = new Thread(this); t1.start(); } public void PC_Bluetooth() { } public void config_bluetooth() { try { m_LocalDevice = LocalDevice.getLocalDevice(); m_LocalDevice.setDiscoverable(DiscoveryAgent.GIAC); server = (StreamConnectionNotifier) Connector.open(connectionURL); conn = server.acceptAndOpen(); } catch (Exception e) { System.out.println(e.getMessage()); } } public void run() { try { config_bluetooth(); } catch (Exception e) { System.out.println(e.getMessage()); } } } and the exceptions are: init: deps-jar: compile: run: here to do..all BlueCove version 2.0.2 on widcomm Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: getProperty0 at com.sun.midp.Configuration.getProperty0(Native Method) at com.sun.midp.Configuration.getProperty(Configuration.java:34) at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91) at javax.microedition.io.Connector.open(Connector.java:158) at javax.microedition.io.Connector.open(Connector.java:138) at javax.microedition.io.Connector.open(Connector.java:120) at pc_interface.PC_Bluetooth.config_bluetooth(PC_Bluetooth.java:42) at pc_interface.PC_Bluetooth.run(PC_Bluetooth.java:56) at java.lang.Thread.run(Thread.java:595) BlueCove stack shutdown completed BUILD SUCCESSFUL (total time: 3 seconds) please suggest me...