Ask a question »

Minecraft - Could not create the Java virtual machine

May 2016


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


  • 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.

For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

Published by deri58.
This document entitled « Minecraft - Could not create the Java virtual machine » from CCM ( 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.