Posts: 2
Joined: Wed Jul 11, 2018 6:41 am

Native Library unix-java_arm not available(Raspberry Pi 3) with java

Wed Jul 11, 2018 8:03 am

pi@raspberrypi:~ $ java -jar X.jar # X.jar is my java code for bluetooth connectivity.... it's working fine on windows. but not on Raspberry pi

I am getting this Error.....

Native Library unix-java_arm not available
Exception in thread "main" javax.bluetooth.BluetoothStateException: BlueCove library unix-java not available;
resource not found libunix-java_arm.so
load [unix-java_arm] no unix-java_arm in java.library.path
at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:396)
at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:450)
at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)
at java.security.AccessController.doPrivileged(Native Method)
at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1042)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1035)
at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
at BluetoothDevice.main(BluetoothDevice.java:37)

Please Can Anybody tell me ,,,, how to solve this problem.....
I am new on Raspberry pi.
Thank you,

User avatar
Posts: 6607
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Native Library unix-java_arm not available(Raspberry Pi 3) with java

Wed Jul 11, 2018 2:34 pm

There is a libunix-java.so file in the package "libunixsocket-java", you can try to install it with "sudo apt install libunixsocket-java".

Return to “Java”