Compiling speed using mxmlc

I am compiling a large ActionScript project on Win7, and the compilation is slow. Looking at the resource monitor during the compilation, both CPU cores are at about 70%, there's 1GB free RAM, and there's very little disk activity.
What is the bottleneck then for mxmlc? Is it perhaps the speed of memory access?
I wanted to speed up the process by upgrading from Core 2 to Core i7, and increasing the number of cores to 4, but seeing how the CPU utilization is only 70%, I am not sure this would help at all?

Is it possible to post the code and how you are calling the
compiler. You should NOT be getting this error. There are some
patch jars in the "Flex SDK 2\lib" directory that look like they
may not be getting picked up properly.
-brent

Similar Messages

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • Embed img using mxmlc, Linux/gij

    Hi,
    I'm trying to embed an image into a .swf. I am compiling from
    a .as file using mxmlc on Linux using gij 4.1.1. The compile step
    always generates the following fatal error:
    MyTest.as(60): col: 3: Error: exception during transcoding:
    Failed to grab pixels for image /files/test.png
    It fails likewise for GIF, JPG, etc. Fails regardless of
    filetype.
    Source code is just a simple embed directive:
    [Embed(source='./test.png')]
    private var MyPhoto:Class;
    Anyone else seen this?

    I'm also having this issue on linux. Same build works
    flawlessly on windows and mac.
    Anyone have more information?

  • Compile application using command line

    I want to be able to compile a personal profile application using the command line. Up until now I've used an IDE (WSDD) to compile and test my application but I need to be able to compile it using just the command line.
    Any help on the matter is much appreciated, thanks
    MBliss

    Thanks for the reply but unfortunately i'm not trying to compile a MIDP application, which is what the link refers to. I did however find out the -bootclasspath arguments i needed.

  • Which compiler is used/supported on Linux

    Hi all,
    Just a simple question for the Oracle support guys - which compiler is used when generating the Linux distribution - my guess would be a GNU gcc of some sort. But can anybody comfirm this - preferably by pointing to some sort of official reference.
    Thanks in advance.
    br
    Jacob

    This is an Application Server newsgroup. (iAS)
    Your might have a better chance with your question on iplanet.server, or
    a iWS related newsgroup.
    David
    Kim Ammouche wrote:
    Hi
    Got a server with RH 7.1 and a postgress database that I plannet to use
    with some LiveWire/SSJS applications over a ODBC connections..
    I got the Enterprise server 4.1 SP8 installed but I can't get it to connect
    via ODBC.
    I just get: [DBNOTFOUND] No access library for 'libnsrwodb.so' from
    dbadmin. Isn't ODBC supported by Enterprise for Linux ?
    Thanks !
    Kim

  • [svn:fx-trunk] 5408: Fix for - Compiler error using Reparent in a Halo Navigator.

    Revision: 5408
    Author: [email protected]
    Date: 2009-03-18 20:57:19 -0700 (Wed, 18 Mar 2009)
    Log Message:
    Fix for - Compiler error using Reparent in a Halo Navigator.
    QE Notes: None.
    Doc Notes: None.
    Reviewer: Paul, please review.
    Bugs: SDK-20099
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-20099
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a

  • Compiling programs using jdk1.6.0

    when i compiled program using "system.out.print.in " , it shows an error
    that package system does not exist .

    if you want to print something use
    System.out.printor if you want to make it print on seperate lines
    System.out.println

  • Compiling code using an older version of the java compiler

    I'm trying to make some very simple applets. I thought I compiled them using the command prompt: javac -source 1.1 *.java
    However now the same computer does not recognize 1.1 as a valid source. It does recognize 1.2 as a valid source but I need a version before 1.2 as I can view the applets that I compiled previously in an older browser than I can the most recently compiled applets. is there any way to get a list of valid compiler versions? I've found some listings but they are usually talking about the Java Virtual machine, not the compiler, and the ones that I have found about the compiler don't work. Or where can I find links to download outdated compilers?

    The documentation for the javac tool (compiler) tells what values of -source and -target are valid for each version (it changes by version). Note that the libraries used for compiling should also match the source version.
    Earlier versions of Java are archived at http://java.sun.com/products/archive/index.html

  • Compile problem using TOMCAT 5.0 and Apache ANT

    I got some sample from book.
    i just follow the step, place it the class file. it work. it run. show all the detail.
    but when i wan to compile it from java file, error came out
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.NoClassDefFoundError: com/jspbook/HelloWorld (wrong name: HelloWorld)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.in CMD:
    set java_home = C:\Program Files\Java\jdk1.5.0_08
    set classpath = C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib
    and Apache tomcat originally dont have servlet.jar but servlet-api.jar, i copy the servlet.jar from my friend
    i compile it using Apache ANT
    here the build.xml
    <?xml version="1.0" ?>
    <project name="jspbook" default="build" basedir=".">
      <target name="build">
        <echo>Starting Build </echo>
        <!-- Turn Tomcat Off -->
        <antcall target="tomcatOff"/>
        <!-- Compile Everything -->
        <antcall target="compile"/>
        <!-- Turn Tomcat On -->
        <antcall target="tomcatOn"/>
        <echo>Build Finished </echo>
      </target>
      <target name="tomcatOff">
        <echo>Turning Off Tomcat </echo>
        <exec executable="bash" os="Windows">
          <arg value="../../bin/shutdown.bat"/>
        </exec>
        <exec executable="bash" os="Linux">
          <arg value="../../bin/shutdown.sh"/>
        </exec>
      </target>
      <target name="tomcatOn">
        <echo>Starting Tomcat </echo>
        <exec executable="bash" os="Windows">
          <arg value="../../bin/startup.bat"/>
        </exec>
        <exec executable="bash" os="Linux">
          <arg value="../../bin/startup.sh"/>
        </exec>
      </target>
      <target name="compile">
        <javac
          srcdir="WEB-INF/classes"
          extdirs="WEB-INF/lib:../../common/lib"
          classpath="../../common/lib/servlet.jar"
          deprecation="yes"
          verbose="no">
          <include name="com/jspbook/**"/>
        </javac>
      </target>
    </project>compile success, but error in IE
    paste the sample class file in,restart tomcat. i work again!
    what is the problem!
    even i compile the code inside the Jcreator, after set required libraries to servlet.jar or servlet-api.jar
    compile it, success then run it in IE, same error!!!.
    what should i do.
    stil a beginer in servlet and jsp anyway.

    and Apache tomcat originally dont have servlet.jar but servlet-api.jar, i copy the servlet.jar from my friend servlet.jar is an OLD version, you should only use servlet-api.jar!
    wrong name: HelloWorldPerhaps there is a mistake in the class or packagename of the source file. Post the source here.

  • [svn] 3813: Update J2EE Webtier Compiler to use SWFObject2 based HTML templates.

    Revision: 3813
    Author: [email protected]
    Date: 2008-10-22 09:13:37 -0700 (Wed, 22 Oct 2008)
    Log Message:
    Update J2EE Webtier Compiler to use SWFObject2 based HTML templates. JSP tags still use the old AC_OETags.js templates since that would be a more complicated change and it is not worth the effort right now.
    QE: Yes
    Doc: Is there any?
    Checkintests: Pass
    Reviewer: Pete
    Bugs: SDK-17699
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17699
    Modified Paths:
    flex/sdk/trunk/modules/webtier/servlet/build.xml
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/server/j2ee/html/MxmlRendere r.java
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/RendererUtil.java
    flex/sdk/trunk/webapps/webtier/WEB-INF/flex/flex-webtier-config.xml
    flex/sdk/trunk/webapps/webtier/build.xml
    Added Paths:
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/index.template.vm
    Property Changed:
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/

    Hi,
    Can you mention the eclipse version you are using? And the platform in which you are trying to build?
    I feel its always better to be platform specific when you go in for headless build. I can see that the configs value in your properties file is "configs=*,*,*". Try changing it to appropriate value and build your product. For example, I use "configs=win32, win32, x86" for building my product in 32-bit windows machine.

  • Using mxmlc to compile AS files

    Hi there,
    I'm wondering if there's a way to compile all classes into 1 swf file? As it is, I have a command that does "mxml -includes classA classB -output classC.swf classC"
    and although I have classC.swf, when I load it on my webpage, it makes two extra requests for classA and classB. Is there anyway for me to combine all the classes into classC.swf?
    Thanks!

    What if you have an MXML file where you "include" A, B and C?
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training, Tutoring, Contracting, and Support Services

  • How to integrate a .abc file into swf by using mxmlc?

    Enviroment: CrossBridge1.0.1, Flex SDK 4.6
    I use g++ to compile 2 .cc files (the c2as wrapper) & a .a file (the logic)  into a .swc file; then use this .swc as a library for mxmlc to compile the main .as file.
    The Makefile is as follows:
    "$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) -O4 -L. main.cc test_as3.cc -lmytest -emit-swc=sample.mytest -o mytest.swc
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc -debug=false MainView.as -o test.swf
    everything is ok.
    But when I add some function calls in .as file, it uses the CModule package:
    in MainView.as:
    import com.adobe.flascc.CModule;
    CModule.malloc
    CModule.writeBytes
    CModule.free
    the mxmlc complains that
    Access of undefined property, CModule.malloc,
    Access of undefined property, CModule.writeBytes,
    Access of undefined property, CModule.free
    Definition com.adobe.flascc:CModule could not be found.
    I found the CModule.abc in sdk/usr/lib folder, and I explored that it do have those functions. but how to import this .abc package into .swf ?
    the follow command doesn't work:
    "$(FLEX)/bin/mxmlc" -static-link-runtime-shared-libraries -library-path=mytest.swc  -import CModule.abc -debug=false MainView.as -o test.swf

    First, you should check out the new version at CrossBridge — CrossBridge
    1.0.1 is quite old.
    For your problem, you don't need to compile Cmodule.abc into your swf, it is already present into your SWC file. Here is the reason why your import is not working.
    When you compile directly to SWF with crossbridge, the compiler put all the crossbridge stuff (CModule included) into the com.adobe.flascc namespace.
    The problem is that, when you build a SWC, there is no garantee that your end application won't include multiple SWC compiled by crossbridge. To prevent namespace clashing, (having multiple Cmodule under the same namespace), all the stuff in the SWC is namespace with the namespace you gave after the -emit-swc command. In this particular case "-emit-swc=sample.mytest"  your namespace is "sample.mytest".
    So you need yo change the import from :
    import com.adobe.flascc.CModule;
    to
    import sample.mytest.CModule;
    and it should work.
    More detail in the documentation : http://crossbridge.io/docs/Reference.html#section_gcc
    Building SWCs
    A SWC is the Flash Runtime equivalent of a shared library. You can link a SWC into a pure ActionScript project either with an IDE (Flash Builder, for example), or via the command-line ActionScript compiler (named mxmlc). A SWC contains the compiled ActionScript bytecode, along with an API catalog so that Flash Builder can perform code hinting while a developer writes ActionScript that uses the API exposed by a SWC.
    When you generate a SWC you must specify an AS3 package name to contain the generated code, and the internal Crossbridge boilerplate code. This lets you link multiple Crossbridge-generated SWCs into one SWF without any function or class collisions. Anywhere you would have previously seen a name starting with com.adobe.flascc this namespace will be replaced with the string passed in the gcc/g++ -emit-swc=... argument.
    -emit-swc=
    Emits a SWC that can be linked into a Flash Builder project or distributed for others to link into their own projects. You must specify the namespace that you want to use to replace the default com.adobe.flascc namespace, this lets you link multiple Crossbridge-generated SWCs into a single project.

  • Flex compiler not using GlobalOptimizer.java?

    hello:
          I dived into the source of the flex compiler and I found that in the package adobe.abc in the Flexsdk/modules/asc/src/adobe/abc.
         as I just use the asc.jar to compile an actionscript file, with the -o2 option on, I found that it optimizes my program well!!
         however, when I read the source code of the mxmlc, I found no sign that the bytecode generated was optimized?why doesn't the compiler use the GlobalOptimizer? is the optimizer not yet completed or just as It did , but I haven't fount it?
         and in the GlobalOptimizer.java, what is the Plugin?
         any suggestions or references are appreciated.
         Thanks!!   ^_^

    I figured out the problem.  You have to Export the release build for the project and use that version of the swf.  I was using the version built by default when you work on the project.  Don't quite know what the difference is, but it works now.

  • Error Compiling when using RGB Color Corrector and Unsharp Mask

    If I apply the RGB Color Corrector and and Unsharp mask to a clip within a sequence and try to render the sequence or a small portion of the work area I get the Error Compiling: Unknown error.
    This is occurring within a project I have updated to Premiere CS6 from Premiere CS5. 
    I have tried creating a new sequence and importing the same clip and other clips.  Anytime I try to use both the Unsharp Mask and RGB Color Corrector I am unable to render.  I have tried this with Mercury Playback both in hardware and software modes with the same result.
    Has anyone else seen something like this?

    Okay, glad this occurs for others too and I am not experiencing something isolated. The issue here is this shouldn't be happening at all. 
    Premiere CS5 has no problem with this.
    Yeah if I turn off one effect or the other no problem.  Unfortunately it doesn't matter the order I place the effects in I get the same error regardless of which is placed first.
    Nesting does work.  If I create a sequence, apply one or the other to the clip in the sequence then embed the sequence in another sequence and apply the remaining filter to the sequence containing the clip then I can get my color correction and edge definition.  But this is a work around. 
    There seems to a bug here since there were no issues when using RGB Color Corrector and Unsharp Mask simultaneously applied to one clip in CS5.  I doubt there will be a fix for this anytime soon so it looks like I will have to use another method for color correcting or apply RGB color correction to clips already embedded in a sequence as I move forward into solely using CS6.
    (How this can become an issue is that after applying effects and color correction to several clips within a sequence I like to render that entire sequence.  Then this sequence is ebedded in another main sequence and I can add additional effects and transitions and overlays without killing the live playback speed and only have to render smaller amounts of content from additional tracks.  It ends up saving a lot of time after the initial length of rendering.)
    Thanks for the suggestions.

  • Just wondering if anyone has been able to find a way around the huge drop in speed using VPN on iPad3 with the latest upgrade to the IOS?

    Just wondering if anyone has found a solution to the problem of huge drop in speed when using VPN since the latest upgrade to the IOS kicked in?

    Hey,
    Thanks for the reference, the Web site explains a lot. And yes, my prefessor is from another country, so understanding his english is a little rough.
    I have read the info, and tried to apply it to my problem but the simple program will still not run. It compiles fine but when I type the following in cprompt:
    java DisplayData <- (my file name)
    I still get the same error message. I understand that it cannot find the class path, but his explanation of what to do about my problem isn't clear. Or maybe I'm not understanding him correctly.
    If you can assist any further help, it would be greatly appreciated.

Maybe you are looking for

  • Issue with MSS 1.41

    Good Night. In the configuration standard that is displayed in the portal in the MSS->Team->Employee Information->General Information In the Iview Employee search the system only display in the "table control" the employee that is in the area of resp

  • I photo not showing up in applications

    his is both a question and an answer.  upgraded (?) to Yosemite....I photo is GONE!!!!  Can;t find it!!! trashed OLD i photo to update 9.6.  all is fine....except i photo is nowhere to be found in DOCK or listed in APPLICATIONS....where the **** is i

  • SAP Intercompany Billing

    Hello all, I am seeking some notes or dc=ocumentation on setting up of Intercompany Billing? any idea?

  • Error in annual return

    Hi Can anyone tell me what is the reasong for this error. When I am trying to run the annual return(J1INAR) :- Program J_1IEWT_ANN_RET is obsolete and cannot be executed. Thanks Deepak

  • Massive iDVD project-Need help breaking it up

    I have been working on a comprehensive DVD of all of my family photos dating back to 1890. I have chapters split up by decades and then submenus within divided up by years. It is almost 2000 photos (no iMovies). Each year is its own slideshow with mu