Details
Description
When I try to run my program via jsvc, it complains:
Cannot find any VM in Java Home <<JAVA_HOME>>
Cannot locate JVM library file
where <<JAVA_HOME>> is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home
The -debug switch shows jsvc searching for several shared libraries in the folder
$JAVA_HOME/../Libraries/
However, with Java 1.7 this folder does not exist, and jsvc should be trying to load this:
$JAVA_HOME/jre/lib/server/libjvm.dylib
If I change JAVA_HOME to point to Apple's Java 1.6, then jsvc successfully finds the JVM shared library.
Note: I built jsvc myself with no problems, and the output of the build makes it clear that it used the Java 7 JNI headers in the compilation.
Background: Apple has deprecated Java 1.6. It not longer is present unless the user explicitly installs it, and recent OS updates have disabled the browser plugin and removed the Java control panel. Apple is pushing customers toward's Oracle's Java 1.7.
Attachments
Attachments
Issue Links
- is duplicated by
-
DAEMON-325 missing location in location.c location_jvm_configure for Darwin
- Resolved