"JavaVM Failed to load JVM", "JavaVM FATAL Failed to load the jvm library" (OS X)

Last edited on

Symptom

You get the following errors in the Runner/Server Log:

JavaVM: Failed to load JVM: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle/Libraries/lib/myuser/squish-4.x-java-macx86_64/lib/libjvm.dylib

JavaVM FATAL: Failed to load the jvm library.

Possible causes

32/64 bit mix up

Squish for Java is available in two variants: 32 bit and 64 bit. You must use the variant that matches the number of bits of your Java application when run outside of Squish.

To check this do the following:

Non existing file libjvm.dylib configured

In the file $HOME/.squish/ver1/server.ini change the line...

LibJVM = "/System/Library/Frameworks/JavaVM.framework/Libraries/libjvm.dylib"

...to...

LibJVM = "/System/Library/Frameworks/JavaVM.framework/Libraries/libserver.dylib"