Telling Java where to find a native library

Jude DaShiell jdashiel at shellworld.net
Sun Aug 29 05:43:49 UTC 2010


There's a CLASSPATH environment variable that probably hasn't been set or 
was set incorrectly in this case.On Mon, 23 Aug 2010, John J. Boyer wrote:

> I have Java bindings for liblouisutdml, which is on my system in
> /usr/local/lib with the name liblouisutdml.so I can't get the library
> loader to find it. The distro is CentOS. The JDK is openjdk. the static
> initializer contains the statement system.loadLibrary("liblouisutdml");
> I get an unsatisfied link exception even if I set
> -Djava.library.path=/usr/local/lib when calling the java interpreter and
> when I set LD_LIBRAR_PATH to the same value. I even trieed louisutdml.so
> ss a symbolic link in the current directory. Nothing works. What's the
> secret?
>
> Thanks,
> John
>
> -- 
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
>





More information about the Blinux-list mailing list