Easiest way:
Start ->
Control Panel ->
Java ->
Click the 'Java' tab ->
Click 'View' under 'Java Runtime Environment Settings' ->
Click 'System' tab ->
Under 'Runtime Parameters' put the following:
Code:
-Xmx1024M -Xms2048M -jar
The
1024 is the minimum memory that will be allocated to Java
The
2048 is the maximum memory that will be allocated to Java
These values can be anything, but I'd recommend 1024 (1GB) for the minimum and 2048 (2GB) or 3072 (3GB) for the maximum depending on how much RAM your computer has
This changed the Java memory allocation for the whole system, so it's not the most ideal way to do it, but if you have extra RAM it's the simplest way to do it.