Open the Control PanelGo to SystemGo to Advanced Systems PropertiesThen Environment VariablesIn System Variables, click AddNew Variable Name: _JAVA_OPTIONSNew Variable Value: -Xmx512MClick 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 sizeXms sets the minimum heap memory size More about...Java Virtual Machine Mark