Fix "could not create the java virtual machine" issue

If Java causes some trouble, you may get the error message "Could not create the Java Virtual Machine." This tutorial will help you solve the issue.



When that happens, the easiest solution that has been tested on Windows XP, Windows 7 and Windows 8 is:


  • ■ 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
That's it, your Java program should now be able to execute properly.
For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.

  • ■ Xmx sets the maximum heap memory size
    ■ Xms sets the minimum heap memory size
See http://www.jafaloo.com/2011/10/30/java-xmx-memory-settings/ for more details on Java Heap memory size and parameters.
 
Status
Not open for further replies.
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
D Social Networking 18
S Social Networking 1
J Social Networking 1
S Social Networking 1
T Social Networking 4
A Social Networking 1
V Social Networking 3
S Social Networking 2
M Social Networking 3
G Social Networking 1
SerPan Social Networking 1
M Social Networking 1
L Social Networking 1
S Social Networking 1
A Social Networking 5
R Social Networking 0
tomsguideUS Social Networking 0
tomsguideUS Social Networking 0
tomsguideUS Social Networking 0
tomsguideUS Social Networking 0

ASK THE COMMUNITY