JVM windows 2 error for Java program installation


To totally unlock this section you need to Log-in


Login

Sometimes, on Windows 8/8.1/10 or Linux , we could encounter a Java installation error that states:

Windows 2 error while loading the Java VM

JVM windows 2 error for Java program installation

Installing with a different version of Java

SCENARIO: "I am having problems launching the Java application or I am receiving "Java virtual machine is not available" or "Windows 2 error while loading the Java VM" messages."

This may be a result of the Java Virtual Machine not being loaded properly by the installer or it is using a fault JVM installed on the system. You may change the Virtual Machine used by the installer to fix this problem.

Windows

  • Launch a Command Prompt (Start Menu > All Programs > Accessories > Command Prompt).
  • Navigate to the location of the Java-based program installer.
  • Launch the installer as follows:
java_application.exe LAX_VM "[location of java.exe file in \bin folder]"

For example (in x86 Windows-based systems):

java_application.exe LAX_VM “C:\Program Files\Java\jre6\bin\java.exe”

Linux

  • Launch a Terminal window.
  • Navigate to the location of the Java-based program installer.
  • Launch the installer as follows:
./java_program.bin LAX_VM [location of the java file in ..\Java\jre\bin]

For example:

./java_program.bin LAX_VM /.../jre/bin/java