jni test case question/ linking

Andreas Tobler toa@pop.agri.ch
Wed Feb 19 07:24:00 GMT 2003


Morning,

I have an understanding question.

Here I run the test:
andreast% ./field
Exception in thread "main" java.lang.UnsatisfiedLinkError: field: file not
found
   <<No stacktrace available>>

Does the call    System.loadLibrary ("field"); assume that it is an .so
file?

Or may I have some PATH settings to adjust?

I run this on darwin, where .so = .dylib.
The point is, do I have to add the ability to load .dylib files in java?

Thx,
Andreas



More information about the Java mailing list