473,379 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

problem in java bluetooth programming

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
1 2503
r035198x
13,262 8TB
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

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

Similar topics

0
by: Thomas_Germany | last post by:
I would like to develop a smart device bluetooth application for pocket PC 2003. As I know, Pocket PC 2003 includes the microsoft bluetooth stack. My intention is to use the SDK from mircrosoft and...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
3
by: Tor Erik Sønvisen | last post by:
Hi I'm making a server-side solution in Python and need to be able to communicate through bluetooth. Is there any bluetooth-packages out there for python? regards tores
0
by: pei_world | last post by:
I am doing a project with Access through a Bluetooth channel, anyone know how to programming with the Bluetooth? or any provided API that I can use? thanks in advance
2
by: pei_world | last post by:
I have a project with Bluetooth technology. I want to know if it is possible to obtain the effect like devices and services discovery in my PC with a Bluetooth adapter.
0
by: Mulham | last post by:
hi everybody... im a c# developer , but im very new in bluetooth programming ! my questions are : 1. i searched on msnd and found many c# functions for bluetooth, but i dont know wiether these...
5
by: =?Utf-8?B?VW1ieQ==?= | last post by:
Com port no. cannot be higher than 20 to sync via Bluetooth, but both BT Devices and IVT Blue Soleil assaign higher no. when I connect my Smartphone SPV C550 to my PC runnig Windows XP sp 2. Does...
6
by: jabslim | last post by:
excuse me, im a newbie programmer and i need a code on how to to be able to send files from a mobile phone to a pc through bluetooth in vb.net can anyone post a code here on how to detect a...
1
by: Z.K. | last post by:
I know this is probably not the correct newsgroup, but I can't find anywhere else that is appropriate to post it in. I need to figure out how to write a bluetooth program to access a bluetooth...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.