3 Replies Latest reply on Jan 6, 2010 7:58 AM by cdman522

    Command Line Build - Java heap space error

    jhndnn

      I'm attempting to build a Flex app via the command line. Even though the build works fine from within the Flash Builder IDE, I get the following error when I attempt to build via the command line

       

       

      C:\code\software\web_stuff>"C:\Program Files\Adobe\Adobe Flash Builder Beta 2\FlashBuilderC.exe" --launcher.suppressErrors -noSplash -application org.eclipse.ant.core.antRunner -data "C:\code\software\web_stuff" -file C:\code\software\web_stuff\build.xml WebControlBrowser

      Buildfile: C:\code\software\web_stuff\build.xml


      WebControlBrowser:

      [fb.exportReleaseBuild] Compiling 1 application to C:\code\software\web_stuff\WebControlBrowser\bin-release...

      [fb.exportReleaseBuild] Exception in thread "Code Model Worker" java.lang.OutOfMemoryError: Java heap space

      [fb.exportReleaseBuild]         at org.eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.java:404)

      [fb.exportReleaseBuild]         at org.eclipse.core.runtime.Plugin.getLog(Plugin.java:282)

      [fb.exportReleaseBuild]         at com.adobe.flexbuilder.codemodel.internal.bridge.WorkspaceSpecification.log(WorkspaceS

      pecification.java:136)

      [fb.exportReleaseBuild]         at com.adobe.flexbuilder.codemodel.internal.parsing.ASTokenizer.parseTokens(ASTokenizer.

      java:386)

      [fb.exportReleaseBuild]         at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider.indexFiles(SWCS

      earchDataProvider.java:440)

      [fb.exportReleaseBuild]         at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider$2.run(SWCSearch

      DataProvider.java:364)

      [fb.exportReleaseBuild]         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

      [fb.exportReleaseBuild]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      [fb.exportReleaseBuild]         at java.lang.Thread.run(Unknown Source)


      BUILD FAILED

      C:\code\software\web_stuff\build.xml:4: java.lang.OutOfMemoryError: Java heap space


      Total time: 1 minute 0 seconds

      FlashBuilderC:

      An error has occurred. See the log file

      C:\code\software\web_stuff\.metadata\.log.

       

       

      I've attached the .log file that is referenced.