Fix Error: Could not create the Java Virtual Machine on Windows

Fix Error: Could not create the Java Virtual Machine on Windows

Tap on Windows-Pause to open the System Control Panel applet. You can alternatively open the control panel manual to go there if you prefer it that way.
  1. Click on advanced system settings on the left.
  2. Select environmental variables here.
  3. Click on new under System Variables.
  4. Enter _JAVA_OPTIONS as the variable name.
  5. Enter -Xmx256M as the variable value.
  6. Click ok twice.

The setting is available right away, you do not need to restart the computer first. It raises the allowed memory to 256 Megabyte.  If your application does not run fine afterwards, try raising the memory to 512 or even 1024 Megabyte instead. \Samuel