JNI

Michael Hall mik3hall at gmail.com
Mon Feb 13 16:26:30 PST 2012


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?





More information about the macosx-port-dev mailing list