Getting rid of "not enough memory to compile in netbeans 7"

This can be changed in the netbeans.conf file :
Navigate to /etc/ directory in your netbeans installation directory:
Open the file netbeans.conf and look for a line like this:

  1. netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"

Add VM parameter's here:
-J-Xmx512M//512MB memory in this case
Like this:
  1. netbeans_default_options="-J-client -J-Xss2m -J-Xms512m -J-Xmx512M -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"
Save and close the file.Restart netbeans.

No comments:

Post a Comment