1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    27
    Vote Rating
    0
    cqiao is on a distinguished road

      0  

    Question a run failure problem

    a run failure problem


    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!

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    you need to add -Xmx256M to the VM arguments of the launch

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    27
    Vote Rating
    0
    cqiao is on a distinguished road

      0  

    Default


    [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

Thread Participants: 1