Setting java.library.path on Linux

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 answerno 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

[975 byte] By [Killiana] at [2007-10-2 8:41:02]
# 1
Can't anybody help me with this? I'm stuck on my final year project because of that I really need help.
Killiana at 2007-7-16 22:42:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
As long as I know, you have to load the library without the "lib" and the ".so". Like this:System.loadlibrary("ip6t_ah")Hope it works
El_Gallegoa at 2007-7-16 22:42:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...