How to Resolve a Java Language Out of Memory Error

How to Resolve a Java Language Out of Memory Error thumbnail
Resolved Out of Memory Error

Java Out of Memory Errors are not due to lack of physical memory on the PC, but rather improper configuration of the Java Runtime Environment. Java, version 1.6 (update 10) and later, allows you to change the maximum allowable memory through a Windows Control Panel applet.

Things You'll Need

  • Latest Java Runtime Environment (JRE) release
Show More

Instructions

    • 1

      Download and install the latest Java Runtime Environment from the Oracle website and reboot your machine.

    • 2

      Access the Windows Control Panel. Please be aware the method for accessing the Control Panel will vary depending on your Windows version, as well as your desktop configuration.

      From the Control Panel window, double click on the Java icon.

    • 3

      Click the Java tab, and then the View... button located in the Java Runtime Environment Settings group box. The Java Runtime Environment Settings dialog box appears.

    • 4

      Select the user tab, if not already selected.

      There are two tabs on the Java Runtime Environment Settings dialog box, user and system. Under each of these tabs a list control is displayed showing each installed version of Java on your machine. If you have more than one version installed, the latest version is the last one in the list and a check mark will appear in the Enabled column.

    • 5

      Double click the Runtime Parameters edit box on the row with the latest version, . Enter -Xmx300m into this box. Click OK on the dialog box to exit, and then click OK on the Java Control Panel dialog to exit the program. A warning dialog will pop up indicating that browser setting have changed.

    • 6

      Exit all applications that are currently using Java, including all Internet browsers. When you re-launch, the error will not recur.

Related Searches:

References

  • Photo Credit programmer image by Valentin Mosichev from Fotolia.com

Comments

You May Also Like

Related Ads

Featured