By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,230 Members | 2,436 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,230 IT Pros & Developers. It's quick & easy.

problem in java bluetooth programming

P: 9
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)

Expand|Select|Wrap|Line Numbers
  1. /**
  2. *
  3. * @author manjunath
  4. */
  5. public class PC_Bluetooth implements Runnable
  6. {
  7. private LocalDevice m_LocalDevice;
  8. String connectionURL = "btspp://localhost:393a84ee7cd111d89527000bdb544cb1;" + "authenticate=false;encrypt=false;name=RFCOMM Server";
  9. StreamConnectionNotifier server = null;
  10. StreamConnection conn = null;
  11. public Thread t1 = null;
  12.  
  13. public void startServer()
  14. {
  15. if (t1 != null)
  16. return;
  17. t1 = new Thread(this);
  18. t1.start(); 
  19. }
  20. public void PC_Bluetooth()
  21. {
  22.  
  23. }
  24. public void config_bluetooth()
  25. {
  26. try
  27. {
  28. m_LocalDevice = LocalDevice.getLocalDevice();
  29. m_LocalDevice.setDiscoverable(DiscoveryAgent.GIAC);
  30. server = (StreamConnectionNotifier)
  31. Connector.open(connectionURL);
  32. conn = server.acceptAndOpen(); 
  33. }
  34. catch (Exception e)
  35. {
  36. System.out.println(e.getMessage());
  37. }
  38.  
  39. }
  40. public void run()
  41. {
  42. try
  43. {
  44. config_bluetooth();
  45.  
  46. }
  47. catch (Exception e)
  48. {
  49. System.out.println(e.getMessage());
  50. }
  51.  
  52. }
  53.  
  54. }
  55.  
  56.  
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(Configurati on.java:34)
at com.sun.midp.io.InternalConnector.<clinit>(Interna lConnector.java:91)
at javax.microedition.io.Connector.open(Connector.jav a:158)
at javax.microedition.io.Connector.open(Connector.jav a:138)
at javax.microedition.io.Connector.open(Connector.jav a:120)
at pc_interface.PC_Bluetooth.config_bluetooth(PC_Blue tooth.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...
Sep 9 '08 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Unsatisfied link would mean that a library that was required was not loaded at the time at which it was required. You might have to cross check your code against samples (if any) from your API provider.
Sep 10 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.