"Error loading ... jvm.dll"

Last edited on

Introduction

When using Squish for Java 32-bit with a 64-bit Java runtime environment (JRE) (or vice versa) you may get an error message similar to this:

Java Virtual Machine Launcher

Error loading: C:\Users\user\squish-4.1-java-win32\bin\jvm.dll

|OK|

Or as an image:

The Runner/Server Log may contain error messages like these:

S: Error invoking Java Web Start (execv)

S: C:\Program Files (x86)\Java\jre6\bin\javaw.exe: No such file or directory

...or...

S: Error invoking Java VM (execv)

S: C:\Program Files (x86)\Java\jre6\bin\javaw.exe: No such file or directory

Possible causes

Squish and Java runtime environment using different word sizes

If your application uses a 32-bit Java runtime environment (JRE) you must use a 32-bit Squish for Java package.

If your application uses a 64-bit Java runtime environment (JRE) you must use a 64-bit Squish for Java package.

Checking whether an application is 32-bit or 64-bit

Finding the JRE that executes a Java application

How to use Java Web Start with Squish