frankleonrose / EmbeddedJvm

OSX library for embedding a Java Virtual Machine within an app.
MIT License
3 stars 0 forks source link

Running on machine with no Apple java fails to start #9

Closed frankleonrose closed 10 years ago

frankleonrose commented 10 years ago

Wrong -> The embedded JVM needs "JNI" added to Info.plist key JavaVM:JVMCapabilities

frankleonrose commented 10 years ago

So, it worked if the JVMCapabilities JNI was set in /Library/Java/JavaVirtualMachines/jre1.8.0_20.jre/Contents/Info.plist, but not when it is set in the copied embedded JVM!

frankleonrose commented 10 years ago

Actual problem was that dlopen(jvm) was passing RTLD_LOCAL which caused the JavaLaunching framework to not see libjava symbols and assume that there was a need to install a JVM! Oy.