In your code, are you calling that System.loadLibrary() with quotes (") around the library name? In your post you put
System.loadLibrary(native)
but it should be
System.loadLibrary("native")
where "native" is the name of the system library you want to load. For example, if I want to load the libary contained in the system file "libfoo.so", I would do this:
System.loadLibrary("foo")
The other problem you usually run into in this case is not having "libfoo.so" in your system's library path. If "libfoo.so" is in the directory "/usr/foo/lib", then you would need to pass that directory to the JVM when you start your program, like so:
java -cp [your classpath] -Djava.library.path=/usr/foo/lib [your main class]
Check out the System class docs for more detail on this stuff:
http://java.sun.com/j2se/1.4.2/docs/...ng/System.html