Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting java.library.path on Linux

843810Dec 29 2005 — edited Jan 1 2006
Hi I'm trying to write a JNI program and am trying to Load a Library located at
/lib/iptables/
on a linux debian machine using "
System.loadlibrary("libip6t_ah.so") "
1/
I get a
java.lang.UnsatisfiedLinkError: no  libip6t_ah.so in java.library.path
2/
So then I tried to set
java.library.path
using the command
-Djava.library.path= /lib/iptables/
and I get as an answer
no such file or directory
So it seems like I am not doing the command right

3/ I tried to put the "libip6t_ah.so " file in the current "java.library.path" folder or also the folder were my Java JNI files are placed and I still get the "UnsatisfiedLinkError" message.



I spent 2 days trying to solve this problem, it might be a very simple problem, I'm a newbie in programming.

Please help me if you can, I'm completly blocked and can't do anything on my project because of that
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 29 2006
Added on Dec 29 2005
2 comments
658 views