JNI (original) (raw)
Igor Nekrestyanov igor.nekrestyanov at oracle.com
Mon Feb 13 15:58:47 PST 2012
- Previous message: JNI
- Next message: JNI
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try -verbose:jni ?
-igor
On 2/13/12 3: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, I figured out how to look at that bug report. No jnilib. That doesn't appear to be the problem for me though ls *.dylib libhp.dylib Mac-User:HalfPipe mjh$ /usr/libexec/javahome -v 1.7 --exec java -cp .:halfpipe.jar TestMonitor Exception in thread "main" java.lang.UnsatisfiedLinkError: no hp in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at org.cmdline.monitor.CocoaMonitor.(CocoaMonitor.java:10) at TestMonitor.(TestMonitor.java:24) at TestMonitor.main(TestMonitor.java:16) Mac-User:HalfPipe mjh$ /usr/libexec/javahome -v 1.6 --exec java -cp .:halfpipe.jar TestMonitor No UnsatisfiedLinkError. I guess I'll try to further isolate a difference if you know of no other common problem.
- Previous message: JNI
- Next message: JNI
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]