Internal compiler error: Java heap space

353 views
Skip to first unread message

Julio

unread,
Feb 14, 2008, 5:32:11 PM2/14/08
to Google-We...@googlegroups.com

Hi there,

We are developing a system using gwt 1.4 and netbeans 5.5.1. However, this bug start showing to us:

Copying 35 files to ...\build\web\WEB-INF\classes
Output will be written into ...\build\web\org.myhome.myfile
   Analyzing permutation #1
      [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 ...)
[ERROR] Build failed
...\nbproject\build-gwt.xml:13: Java returned: 1


I am researching about that and i found that I should increase my the amount of memory in the "netbeans.conf". But, this did not solve.

Can someone help me?

thanks.

Julio Antunes
Computer Science - Master Degree
UFES, Brazil

Jean-Philippe Côté

unread,
Feb 14, 2008, 6:06:25 PM2/14/08
to Google-We...@googlegroups.com
Hi,

I don't really know netbean, but when I got this problem I just add -Xmx128M just after JAVA in my project-compile.cmd

Hope this help, unless sorry to disturb ! :)
--
Jean-Philippe Côte

Jason Morris

unread,
Feb 15, 2008, 3:17:00 AM2/15/08
to Google-We...@googlegroups.com
I'm assuming you're using GWT4NB?

If so: under the "Files" tab, open up nbproject/gwt-build.xml. In the
"-post-compile" target change the

<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true">

to something like

<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true"
maxmemory="128M">

If you're not using GWT4NB (then you should probably think about it), then take
a look in the generated build.xml and find the <java> command that runs the
GWTCompiler, and follow the above ;)

Hope that helps a bit.

Julio

unread,
Feb 15, 2008, 7:35:47 AM2/15/08
to Google-We...@googlegroups.com

hello Jason,

your suggestion was very useful. The system came to work here.

thanks.
--
Julio Cesar Pereira Antunes
Mestrado Ciencia da Computacao - UFES
MSN: antune...@hotmail.com
Skype: jcpantunes

DataSurfer

unread,
Mar 3, 2008, 10:24:00 AM3/3/08
to Google Web Toolkit
build-gwt.xml says:
"WARNING: Any manual modifications to this file may be automatically
overriden"

Is there a place where I can put the maxmemory directive so it will
show up in this file the next time I do a clean & build?
> > UFES, Brazil- Hide quoted text -
>
> - Show quoted text -

pohl

unread,
Mar 3, 2008, 5:59:43 PM3/3/08
to Google Web Toolkit
This is a known issue in gwt4nb. The workaround that jason
suggested is documented in the issue that tracks getting this fixed.
Sadly, no one has looked into an actual fix for the gwt4nb plugin.

See https://gwt4nb.dev.java.net/issues/show_bug.cgi?id=36

As a side note, Netbeans 5.5.1 has been superceded by Netbeans 6.0.1

http://www.netbeans.org/

DataSurfer

unread,
Mar 5, 2008, 12:01:18 PM3/5/08
to Google Web Toolkit
Something like a GWT Compiler Max Memory field in the Project
Properties would be nice.
http://datasurfer.googlepages.com/gwtmaxmemory.png

On Mar 3, 5:59 pm, pohl <pohl.longs...@gmail.com> wrote:
> This is a known issue in gwt4nb.    The workaround that jason
> suggested is documented in the issue that tracks getting this fixed.
> Sadly, no one has looked into an actual  fix for the gwt4nb plugin.
>
> Seehttps://gwt4nb.dev.java.net/issues/show_bug.cgi?id=36
>
> As a side note, Netbeans 5.5.1 has been superceded by Netbeans 6.0.1
>
> http://www.netbeans.org/
>
> On Mar 3, 9:24 am, DataSurfer <datasur...@gmail.com> wrote:
>
>
>
> > build-gwt.xml says:
> > "WARNING: Any manual modifications to this file may be automatically
> > overriden"
>
> > Is there a place where I can put the maxmemory directive so it will
> > show up in this file the next time I do a clean & build?- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages