I am working on upgrading a project to 1.4.60 and am having some
errors. I copied all of the jars over to where all of the old ones of
the same names where(Got rid of the old ones of course). But whenever
I run my ant build I get this message,
[java] Output will be written into output\gwt\SampleApp
[java] Analyzing permutation #1
[java] [ERROR] Unexpected internal compiler error
[java] java.lang.OutOfMemoryError: Java heap space
[java] at java.lang.ClassLoader.findLoadedClass0(Native
Method)
[java] at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:922)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
295)
[java] at sun.misc.Launcher
$AppClassLoader.loadClass(Launcher.java:276)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
251)
[java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at
com.google.gwt.dev.jjs.InternalCompilerException.addNode(InternalCompilerException.java:
133)
[java] at
com.google.gwt.dev.jjs.InternalCompilerException.addNode(InternalCompilerException.java:
124)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:
540)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:529)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:69)
[java] at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.execImpl(GenerateJavaScriptAST.java:
1785)
[java] at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(GenerateJavaScriptAST.java:
1653)
[java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:
385)
[java] at
com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:
688)
[java] at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:
411)
[java] at
com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:335)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
755)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
745)
[java] at
com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:213)
[java] [ERROR] Out of memory; to increase the amount of
memory, use the -Xmx flag at startup (java -Xmx128
M ...)
[java] [ERROR] Build failed
BUILD FAILED
C:\cygwin\home\agibson\repository\gwt-rpc\bldfiles\build.xml:244: Java
returned: 1
Total time: 1 minute 2 seconds
Has anyone else seen this before? Or is it just me? And does anyone
have any ideas about what to do to fix it?
Thanks,
-Gabbie
The compiler is running out of memory. It's possible that there's
some error in the compiler that you've managed to tickle, but it's
more likely that you just need to give the JVM more RAM. I think the
usual argument is something like -Xmx512M, but I could be wrong. Look
at the documentation for your JVM and try to figure out how to give it
more heap space.
Ian
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
-Gabbie
On Aug 30, 3:44 pm, "Ian Petersen" <ispet...@gmail.com> wrote:
On 31 авг, 01:51, Gabbie <Chaopsychoch...@gmail.com> wrote:
> Thanks, that was totally it. I feel like such an idiot, when I was
> trying that before I completely forgot the 'M' at the end, no wonder
> it wasn't working. >.< Whoops.
>
> -Gabbie
>
> On Aug 30, 3:44 pm, "Ian Petersen" <ispet...@gmail.com> wrote:
>
> > On 8/30/07, Gabbie <Chaopsychoch...@gmail.com> wrote:
>
> > > [java] java.lang.OutOfMemoryError: Javaheapspace
>
> > The compiler is running out ofmemory. It's possible that there's
There is the solution. It helped me!!!
On Oct 23, 11:05 am, "Serega.Shey...@gmail.com"