Error:
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.
Snapshot:
Workaround 1:
Go to java directory (“C:\Program Files\Java\jre7\bin”).
Open the “java.exe” properties (right-click, properties), go to “Compatibility” and set “Run the program as an administrator”.
Workaround 2:
- Open the Control Panel
- Go to System
- Go to Advanced Systems Properties
- Then Environment Variables
- In System Variables, click Add
- New Variable Name: _JAVA_OPTIONS
- New Variable Value: -Xmx512M
- Click OK
Workaround 3:
- Uninstall Java from control panel
- Navigate to “System32” folder
- Delete java.exe, javaw.exe and javaws.exe
- Re-install the all JAVA components.