java.library.path issues with external library [message #223730] |
Tue, 07 February 2006 03:56 |
Eclipse User |
|
|
|
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
Run...<RunID>->WM Arguments.
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 ?
Thanks.
|
|
|
|
|
|
Re: java.library.path issues with external library [message #223844 is a reply to message #223779] |
Wed, 08 February 2006 00:11 |
Eclipse User |
|
|
|
Originally posted by: me2.nowhere.com
On Tue, 07 Feb 2006 08:18:06 -0500, Paul Webster wrote:
> When you get to your jar in the build path, you can also expand the jar
> and add a native library entry that points to the correct native library
> dir for that jar ... then eclipse will automatically compute the
> java.library.path for you.
>
> Later,
> PW
Thanks. I'll give that a try too.
|
|
|
Re: java.library.path issues with external library [message #223850 is a reply to message #223793] |
Wed, 08 February 2006 00:20 |
Eclipse User |
|
|
|
Originally posted by: me2.nowhere.com
On Tue, 07 Feb 2006 15:40:03 +0100, michael wrote:
> Hello,
>
> I think this problem is not because of the jar files. Both of the
> libraries try to load a dll. Please check that the dlls can be found in
> the search path. The easiest way to check this is to copy them to the
> windows system32 folder. If this source of the problem you can try further
> to adjust your paths.
>
> HTH,
> Michael
Err... I'm running Linux...
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03304 seconds