After launching an APM Agent install, seeing error: "LaunchAnywhere Error - windows error 2 occurred while loading Java VM."

Document ID : KB000005767
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

 Getting an Windows Error message while launching the Agent installer.  The title of the dialog box is LaunchAnywhere Error and the message is "Windows Error 2 occured While loading the Java VM.

Capture.JPG

 

Environment:
This can happen with any version of the installer.
Cause:

The problem is the compatibility between the LaunchAnywhere installer application and finding the Java VM location.  Note that this happens even if the Java VM is configured correctly with its Environmental Variables.

Resolution:

When running the installer you need to add the parameter LAX_VM to this installation command.  From the command prompt.

IntroscopeAgent<version>windows.exe LAX_VM <path_to_JVM>

For example: InstallXYZ.exe LAX_VM C:\Program Files (x86)\Java\jre6\bin\java.exe