JNI not working on SoyLatte

Landon Fuller landonf at bikemonkey.org
Wed Apr 16 10:37:59 PDT 2008

On Apr 14, 2008, at 7:19 PM, Trevor Harmon wrote:

> On Apr 14, 2008, at 6:56 PM, Greg Lewis wrote:
>> SoyLatte does require the library be .dylib instead of .jnilib, so  
>> thats
>> at least part of the puzzle.  If you want to find out what files its
>> actually looking for in terms of the library you could run it under  
>> the
>> MacOS X equivalent of ktrace and find out where its looking.
> Anybody know what the equivalent of ktrace is on Mac OS X?

In Leopard, it would be dtrace (and dtruss). Tiger still has ktrace.

>> You could also try setting LD_LIBRARY_PATH since IIRC it does  
>> search through there.
> Yes, to get JNI to work on the bundled Apple port of Java 1.5, I  
> have to set DYLD_LIBRARY_PATH to point to the directory containing  
> the JNI library. However, neither DYLD_LIBRARY_PATH nor  
> LD_LIBRARY_PATH seems to have any effect on SoyLatte.

Do you have a stand-alone test case that works on Apple's JVM, but  
doesn't work on SoyLatte?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://mail.openjdk.java.net/pipermail/porters-dev/attachments/20080416/938cbaa2/attachment.bin 

More information about the porters-dev mailing list