Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows error 2 occured while loading the Java VM

I've been trying to install this ARToolkit from Qualcomm: https://ar.qualcomm.at/qdevnet/ (Windows ".exe" version) on a Windows 7 64bits platform, and I keep getting the error:

Windows error 2 occured while loading the Java VM

The program trying to install this program is InstallAnywhere, but I can't seem to find any documentation about this error. The dialogue box name when the crash happens is LaunchAnywhere

I was just wondering if anyone had seen this kind of error before and if so, how to solve it. The very few answers I can find online relate to Win98/ME issues thus making them irrelevant.

I'm currently using JDK 1.7.0_04 and jre 1.7 if this is somehow relevant.

like image 642
zeroxgames Avatar asked Jun 06 '12 19:06

zeroxgames


2 Answers

Launch the installer with the following command line parameters:

LAX_VM

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

like image 182
Imran Khakoo Avatar answered Nov 14 '22 07:11

Imran Khakoo


In cmd

C:\Users\Downloads>install.exe LAX_VM "C:\Program Files\Java\jdk1.8.0_60\bin\java.exe"

like image 33
Dayana Martìnez Avatar answered Nov 14 '22 07:11

Dayana Martìnez