New Member with a Problem

Dalibor Topic dalibor.topic at
Wed Aug 25 07:59:55 UTC 2010

On 8/25/10 1:35 AM, John J. Boyer wrote:
> I have used JNI to make 
> bindings to the liblouisutdml library. The C part of the bindings is 
> compiled into the library for convenience. When I test the bindings with 
> a simple program that just creates a new instance of their class, I get 
> an unstaisfiedLink exception with the message "no liblouisutdml in 
> java.librarry.path".

Hi John,

you're probably using System.loadLibrary("liblouisutdml"), and your library is
called on disk. Since loadLibrary automagically maps the given 
cross-platform name of a library to a system-dependent native library name by 
adding the necessary (if any) prefix and suffix, you have to pass it the library 
name without a system-dependent prefix ("lib") or suffix (".so"), as those will
be added to it.

In other words, try System.loadLibrary("louisutdml") instead. ;)

In general, a good forum for JNI questions is

dalibor topic
Oracle <>
Dalibor Topic | Java F/OSS Ambassador
Phone: +494023646738 <tel:+494023646738> | | | Mobile: +491772664192 <tel:+491772664192>
Oracle Java Platform Group

ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven

Green Oracle <> Oracle is committed to developing practices and products that help protect the environment

More information about the discuss mailing list