Darwin OpenJDK 7 Binaries - Not Working With SWT

Michael Franz mvfranz at gmail.com
Sun Oct 5 20:25:33 PDT 2008


Hi,

Do any other platforms support multiple dynamically load library extensions?

I was thinking that the JNI_LIB_SUFFIX could be defined as a space (or
comma) delimited list of extensions and then change
Java_java_lang_System_mapLibraryName in
jdk/src/share/native/java/lang/System.c to be able to handle the parsing of
the JNI_LIB_SUFFIX string.  The order in the list would specify the search
order.

Thoughts?

Michael

>
> Sounds like OpenJDK is not recognizing .jnilib files as valid native
> libraries. Another patch to SoyLatte also allowed it to recognize both
> .dylib and .jnilib. We also made changes to Java in Mac OS X 10.5 Leopard to
> recognize .dylib as well as .jnilib.
>
> I know it's sounds super-hacky, but I bet if you renamed all your .jnilib's
> to .dylib's, it will probably work.
>
> Best of luck,
> Mike Swingler
> Java Runtime Engineer
> Apple Inc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20081005/a8b6de19/attachment.html 


More information about the bsd-port-dev mailing list