Minecraft - Could not create the Java virtual machine

September 2016

Issue


Upon launching Minecraft, the following error message is displayed:
Error: Could not create the Java virtual machine
Error: A fatal exception as occurred program will exit

Solution

  • Right-click on "Computer" and select "Properties"
  • Then go to "Advanced" or "Advanced Settings" > "Environment Variables"
  • Below "System Variables", click on "New":
  • For "Variable name" enter: "_JAVA_OPTIONS"
  • For "Variable value" enter: "-Xmx512M".

Tested under Windows 7.

Thanks to ZeInf3ct3d for this tip.

Related :

This document entitled « Minecraft - Could not create the Java virtual machine » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.