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