[ERROR] Unexpected internal compiler error java.lang.OutOfMemoryError:
Java heap space
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx
flag at startup (java -Xmx128M ...)
After being annoyed with this problem I ended up patching the GWT4NB
plugin module to allow for a Max heap of 512Mb... I did the same for
google hosted mode browser thingy - since the hosted mode was also
running out of memory. This is now a permanent fix so I no longer
have to go and change the ant build file each time I load the project.
otherwise if you'd rather do it yourself...
then download the GWT4NB module and open it in winrar/some other
find the .jar file (\netbeans\modules\org-netbeans-modules-gwt4nb.jar)
and extract and open that in winrar...
find the build-gwt.xml file (org\netbeans\modules\gwt4nb\resources
then make the following changes (note the 512m in both cases and
compare to your build file):
1)Fixes memory issue on compile (maxmemory="512m"):