Hi,
Thanks for your quick reply!
The bluecove-bluez module results in the error below.
Exception in thread "main" java.lang.NoClassDefFoundError: org/freedesktop/dbus/exceptions/DBusException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:347)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:438)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1035)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1033)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1026)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at OBEXPutServer.main(OBEXPutServer.java:14)
Caused by: java.lang.ClassNotFoundException: org.freedesktop.dbus.exceptions.DBusException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
It is my desire to learn a little java and bluetooth networking. Admittedly I didn't think combining the two would be easy but this is presenting more of a challenge than I expected. What I had hoped to achieve was to write a small program that does something with Bluetooth and runs as well on Windows, Mac and Linux... Could I be using the wrong tools?
I have looked at other bluetooth stacks for Java I have found a few that are commerical and don't seem to support bluez, the Sun JSR-82 implementation that is now defunct and others that didn't seem appropriate at the time. What has happened to Bluecove development on source forge the files listed there were last updated in 2008?
With Dbus-Java in the build-path I now get a new error.
Exception in thread "main" java.lang.NoClassDefFoundError: cx/ath/matthew/unix/UnixSocket
at com.intel.bluetooth.BluetoothStackBlueZDBus.requireNativeLibraries(BluetoothStackBlueZDBus.java:152)
at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:380)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:440)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1035)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1033)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1026)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at OBEXPutServer.main(OBEXPutServer.java:14)
Caused by: java.lang.ClassNotFoundException: cx.ath.matthew.unix.UnixSocket
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 11 more
Please don't be under the mistaken impression that I might know what I'm doing (at least not yet).
--
Thanks,
Stephen.