IBM Support

Why am I receiving a message from 'LaunchAnywhere' indicating 'Error: Windows error 2 occured while loading the Java VM'?

Troubleshooting


Problem

You are attempting to install or license a SPSS product or License Manager on a version of Windows Server and receiving a message from LaunchAnywhere' indicating 'Error: Windows error 2 occured while loading the Java VM'.

Symptom

'LaunchAnywhere' presenting 'Error: Windows error 2 occured while loading the Java VM' during product installation.

Cause

Multiple causes.

Environment

Windows.

Diagnosing The Problem

'LaunchAnywhere' presenting 'Error: Windows error 2 occurred while loading the Java VM' during product installation or licensing on a Windows operating system

Resolving The Problem

There are multiple causes for this behavior. The resolution depends on the action taken when the error presents.

IF you are installing a SPSS product (including the License Manager) and receiving this error, THEN the most common cause is that Java Virtual Machine (JVM) is not installed. If JVM is not installed, install the JVM and attempt installation.

IF you are licensing a SPSS product (including the License Manager) and receiving this error, THEN confirm the JVM is installed. If JVM is installed, see additional resolution options below.

IF you are licensing a SPSS product (including the License Manager) using the License Authorization Wizard graphical user interface and receiving this error, THEN try using the 'licenseactivator' program executable (licenseactivator.exe) located in the product installation directory. The 'licenseactivator' program must be executed from an Administrator Command Prompt. The command argument for use of the 'licenseactivator' executable is (replacing '<authcode>' with an actual SPSS product authorization code or license code): licenseactivator <authcode>

IF you are licensing a SPSS product (including the License Manager) using 'licenseactivator', THEN try using the License Authorization Wizard graphical user interface by locating the 'law' program executable (law.exe) located in the product installation directory. The 'law' executable must be executed by right-clicking on the 'law' icon and selecting the 'Run as administrator' option (if available).

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"Not Applicable","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 April 2020

UID

swg21982465