JNI

Michael McMahon michael.x.mcmahon at oracle.com
Tue Feb 14 00:45:53 PST 2012


On 14/02/12 00:26, Michael Hall wrote:
> On Feb 13, 2012, at 5:55 PM, Michael Hall wrote:
>
>> On Feb 13, 2012, at 4:34 PM, Scott Kovatch wrote:
>>
>>> What's the name of your JNI library? If it ends in .jnilib it won't work in 1.7. It needs to be .dylib.
>>>
>>> Why yes, that did break your application. See 7134701.
> OK, simple enough I guess. 1.6 loads if the native lib is just in classpath. 1.7 needs the explicit -Djava.library.path
>
>   /usr/libexec/java_home -v 1.7 --exec java -Djava.library.path=/Users/mjh/HalfPipe -cp .:halfpipe.jar TestMonitor
> TestMonitor: terminated Adobe Reader /Applications/Adobe Reader.app pid = 554
>
> Acceptable behavior?
>
Loading native libraries from the classpath sounds very strange to me. 
Can anyone shed some light
on the reason why that was done?

- Michael.



More information about the macosx-port-dev mailing list