PDA

View Full Version : a run failure problem



cqiao
16 Jun 2008, 5:23 AM
HI, I imported the sample project, mail, to a new GWT project built by GWT designer 4.0. But when running, failure. The information in log is:

[ERROR] Failure to load module 'com.extjs.gxt.samples.mail.Mail'
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:465)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:275)
at com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:194)
at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:72)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:253)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:67)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:128)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)

[ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)

why? and how to deal with?
thanks!

gslender
16 Jun 2008, 12:15 PM
you need to add -Xmx256M to the VM arguments of the launch

cqiao
17 Jun 2008, 4:07 PM
[FONT='Times New Roman']Thank you! I had got the way in the night, and [FONT='Times New Roman']had succeed to run the sample project