Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. problem in bluetooth programming in java

problem in bluetooth programming in java

Scheduled Pinned Locked Moved Java
c++javacomsysadmindata-structures
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manju23reddy
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups