-
Notifications
You must be signed in to change notification settings - Fork 113
java.lang.UnsatisfiedLinkError: no javatinyb in java.library.path #75
Comments
Did you figure out what was wrong here? |
Hi vivek,
I solved that issue by giving the below command.
java -Djava.library.path=javatinyb /usr/local/tinyb/build/examples/java/HelloTinyB.jar:/usr/local/tinyb/build/java/tinyb.jar HelloTinyB 00:A0:50:D0:95:4B
thanks,
shankar.v
From: vivekze [mailto:notifications@github.com]
Sent: 08 February 2017 09:33
To: intel-iot-devkit/tinyb <tinyb@noreply.github.com>
Cc: vangapandushankar <shankar.v@teblux.com>; Author <author@noreply.github.com>
Subject: Re: [intel-iot-devkit/tinyb] java.lang.UnsatisfiedLinkError: no javatinyb in java.library.path (#75)
Did you figure out what was wrong here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#75 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AX2TGwPJc7m0odZBNuHYx76p1bOTMIqJks5raT6PgaJpZM4Llj09> .
|
I had the same problem. On Debian I solved it by modifying LD_LIBRARY_PATH and telling where to look for the library. echo $LD_LIBRARY_PATH I installed tinyb in the default location (/usr/local/lib). I then added it to LD_LIBRARY_PATH. It happened to me that I have been then asked for libjawt.so etc. that in my case are located in /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64, that's why you see this line in my example. After that you can run an example normally as indicated here: [https://software.intel.com/en-us/java-for-bluetooth-le-apps]: java -cp /usr/local/lib/java/tinyb.jar:examples/java/HelloTinyB.jar HelloTinyB 0E:ED:69:9C:D3:C4 Hope it helps. |
@vangapandushankar @Be1thaz0r Neither fixes work for me I have ensured the make install is successful and jar is placed under the correct path Is there anything else I need to do? I'm using Fedora |
@AaronBedward the |
@Be1thaz0r Figured it out My problem was was that i needed to change the default install path to /usr/ rather than the default /usr/local settting the |
its looking for these 2 files
located what directory they are in then add them in the parameter In my build directory i ran it like this. The 2 files are located in 2 different directories. This got it working for me. |
Should be solved by #117 |
I had the same problem,My solution as follows:
2.If you run with eclipse or other IDE,You can put the “libjavatinyb.so” and "libtinyb.so" file in your project folder(Can also not be put in), Then , Hope it helps. |
I'm using Eclipse 4.12, JFX11 on Ubuntu 20.04. Built a project that opens a JFX BorderPane with various functions. That works fine. So then I built the tinyb library, created tinyb.jar, added it to the project and on build got the UnsatisfiedLinkError stated above, Thanks to this thread I added libjavatinyb.so and libtinyb.so to the Native Library for tinyb.jar. It then builds but now crashes with the error below when trying to run the project. Somehow adding the .so files to the tinyb native lib build path causes the new problem with JFX. What now....? Graphics Device initialization failed for : es2, sw |
when i'm trying to run (java -cp /usr/local/tinyb/build/HelloTinyB.jar: /usr/local/tinyb/build/tinyb.jar HelloTinyB XX:XX:XX:XX:XX(MAC address) ,
i'm getting this errorr java.lang.UnsatisfiedLinkError: no javatinyb in java.library.path
The text was updated successfully, but these errors were encountered: