Hello,
It has been almost all the afternoon trying to load a library from a jar file.
My code is something like
static{
//Load the library used by this Wrapper
//File library = new File("lib/libJavaWrapper.so");
//System.load(library.getAbsolutePath());
System.load("lib/libJavaWrapper.so");
}
The jar command takes all the directories and subdirectories of my program.
however, whenever I tried to execute the program, I get the
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library:
/home/marcelo/temp/lib/libJavaWrapper.so
Do you have some ideas?
thanks a lot,
Marcelo
PS: Should I specify this library inside my Manifest file?
Raymond DeCampo - 23 Jan 2006 03:31 GMT
> Hello,
>
[quoted text clipped - 21 lines]
>
> PS: Should I specify this library inside my Manifest file?
It would appear that it order to load a library it must exist on the
file system as a file, not simply be inside a jar file.
Ray

Signature
This signature intentionally left blank.
Andrey Kuznetsov - 23 Jan 2006 08:11 GMT
> It has been almost all the afternoon trying to load a library from a jar
> file.
search for JPackIt

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities