|java.library.path issues with external library [message #223730]
||Tue, 07 February 2006 03:56
Originally posted by: me2.nowhere.com|
I am building my first swt app that uses an external library. I am trying
to use rxtx (http://www.rxtx.org/) to facilitate serial communications
from my Java application.
My app worked fine until I added the rxtx stuff. I added the necessary
imports and it builds fine. In Properties->JavaBuildPath->Order and
Export, I added RXTXcomm.jar.
When I run the application, I get:
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown
while loading gnu.io.RXTXCommDriver
So, I add -Djava.library.path=/usr/java/jre1.5.0_05/lib/i386 to
Then when I run the application I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-3139 in java.library.path
How do I get both libraries to load at run time ?
Powered by FUDForum
. Page generated in 0.01990 seconds