Wednesday, 14 August 2013

adding path to java build

adding path to java build

In my project I have an rxtx library that I use to manage Serial comms.
When I run the application in netbeans ide I have no problems. I have put
the rxtx files in my java folders and added the path in the project
libraries. The problems start when I build the jar file for the project.
It creates the jar file and adds the folder for costum libraries at /lib
folder. However I am not able to run the jar file by double clicking on
it. When I run it from command line I get:
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown
while loading gnu.io.RXTXCommDriver
What should I do in order for the program be able to find the rxtx library
in the /lib folder?

No comments:

Post a Comment