0 Replies Latest reply: Dec 26, 2012 10:31 PM by 981797 RSS

    Where is JNI_CreateJavaVM() on OS X?

      Hi. On OS X Mountain Lion 10.8.2, JDK 7 is provided by Oracle. I have that installed, and it works fine. I can also make JNI calls from Java to my native library just fine.

      But soon I'm going to need to embed the JVM into a native app. For that I need to be able to call JNI_CreateJavaVM(). But unfortunately, I can't find the library to link against for this. I believe it's libjvm.dylib, butI can only find one in my JDK installation, at /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/server/libjvm.dylib, and linking against that does not resolve the link issue.

      Any idea where I can find this API? Thanks.