Hi All, I am using GWT in my application. My system is having 2GB RAM and I have around 2000 Java files to compile. During compiling the files, I am using JVM argument -Xmx1024M but my GWT compilation is failing and throwing this error.
[java] Analyzing permutation #1 [java] [ERROR] Unexpected internal compiler error [java] java.lang.OutOfMemoryError: Java heap space [java] at java.util.Arrays.copyOfRange(Unknown Source) [java] at java.lang.String.<init>(Unknown Source) [java] at java.lang.StringBuffer.toString(Unknown Source) [java] at java.io.StringWriter.toString(Unknown Source) [java] at com.google.gwt.dev.util.DefaultTextOutput.toString(DefaultTextOutput.java: 116) [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java: 403) [java] at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java: 697) [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:764) [java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:754) [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 -Xmx128M ...) [java] [ERROR] Build failed [java] Java Result: 1 What is the problem?? Is my system memory is not enough or any other reason?? Please help me out as no. of java files will be increasing because my application is in developement. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---