Open GoogleCodeExporter opened 9 years ago
I success in skipping this issue replacing bluecove-gpl-2.1.1-SNAPSHOT by
bluecove-bluez-2.1.1-SNAPSHOT.
However, I get a new issue when i called for "LocalDevice local =
LocalDevice.getLocalDevice();"
Exception in thread "Thread-0" java.lang.NoClassDefFoundError:
org/freedesktop/dbus/exceptions/DBusException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.intel.bluetooth.BlueCoveImpl.loadStackClass(BlueCoveImpl.java:358)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:454)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:70)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1085)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1083)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1076)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at WaitThread.waitForConnection(WaitThread.java:37)
at WaitThread.run(WaitThread.java:20)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException:
org.freedesktop.dbus.exceptions.DBusException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 14 more
Original comment by paul.mag...@laposte.net
on 31 Aug 2014 at 12:03
I think the issue is in gcc. Default paraments are different from one version to another.
Try to use steps from my article to change build.xml for bluecove-gpl-2.1.1-SNAPSHOT.jar: 1) <property name=»bluecove.native.linker.options» value=»-nodefaultlibs«/> => <property name=»bluecove.native.linker.options» value=»»/> 2) <arg value=»-Wl,-soname,libbluecove${library_sufix}-${product_version}»/> => <arg value=»-Wl,--no-as-needed,-soname,libbluecove${library_sufix}-${product_version}»/> 3) <arg value=»-L${libs-universal}»/> <arg value=»-lbluetooth»/> <arg line=»${bluecove.native.linker.options}»/> <arg value=»-Wl,-soname,libbluecove${library_sufix}-${product_version}»/> => <arg value=»-L${libs-universal}»/> <arg line=»${bluecove.native.linker.options}»/> <arg value=»-Wl,—no-as-needed,-soname,libbluecove${library_sufix}-${product_version}»/> <arg value=»-lbluetooth»/>
http://privateblog.info/raspberry-pi-kak-rabotat-s-bluetooth-na-java/
Original issue reported on code.google.com by
paul.mag...@laposte.net
on 29 Aug 2014 at 4:06