JAR, JNI and libraries



How Can i include a library inside a JAr file ?
I have a jar file like this:

>>jar ft prompt.jar
META-INF/
META-INF/MANIFEST.MF
Prompt.class
libPrompt.so

and the System.loadLibrary("Prompt");

but I get the error:

>> java -jar prompt.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no Prompt in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at Prompt.<clinit>(Prompt.java:14)



help please

Marcelo
.



Relevant Pages