Mxmlc/compc error

I'm trying to setup a Ant script to compile my code, but I keep getting an error regarding an [Embed]
Kol: 3: Fejl: '/../assets/images/info.png' kan ikke fortolkes til kodeoverførslen
    [compc]           [Embed(source="/../assets/images/info.png")]
    [compc]   ^
    [compc] C:\Documents and Settings\Administrator\.hudson\jobs\ProcessGuide\workspace\src\dafolo\processguide\core\components\
Kol: 3: Fejl: Koden /../assets/images/info.png kan ikke overføres.
I can't seem to get an english version of the error, but translated directly it says:
Col: 3: Error:'/../ assets / images / info.png 'can not be interpreted to code transfer
Col: 3: Error: Code / .. / assets / images / info.png cannot be transferred.
I've also tried calling it directly from command, but I get the same error.
I've tried changing the [Embed] a bunch of times, but it just keeps on failing.

Sry, I'll just post my Ant script:
<project name="ProcessGuide" default="compile">
<!-- load previously defined configuration properties file -->
<property file="" />
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<taskdef resource="flexTasks.tasks" classpath="C:/Documents and Settings/Administrator/Desktop/flexTasks.jar"/>
<!-- Build and output the Main.swf-->
<target name="compile">
<compc output="Main.swc">
<include-sources dir="./src" includes="**/*.as **/*.mxml" />
<source-path path-element="C:/Documents and Settings/Administrator/Desktop/"/>
<compiler.library-path dir="C:/Documents and Settings/Administrator/Desktop/" append="true">
                <include name="libs" />

Similar Messages

  • Swf, swc and the mxmlc, compc ant tasks

    I'm a bit confused on the end result of the mxmlc / compc ant
    tasks, or maybe the difference between swf and swc files. I have a
    library of 60 or so AS3 files used for
    serialization/deserialization of my Java backend (using GDS for
    serialization of data between java serverside and my flex front
    end). I first use the compc ant task on these AS3 files to create a
    swc file. This swc is 453316 bytes. With this flash library, I use
    the mxmlc ant task on my mxml file, which produces a 201,492-byte
    swf file.
    I have a couple questions related to the procedure above.
    Shouldn't the swf file include the swc file, and hence be bigger
    than the swc? I'm just wondering if I deploy the swf file, will it
    have all it needs in the swc file to perform the functions
    My second question relates to setting the
    keep-generated-actionscript="true" in the mxmlc task. When
    doing this, I see all the AS3 code generated. However, it does not
    include 55 of the 60 AS3 classes compiled in the swc. It only
    generated AS3 code for those AS3 classes explicitly declared in the
    mxml code (via import and actual declaration). Am I doing something
    wrong here or is this the way flex does its thing?
    The reason why I'm concerned about this is that I'm getting a
    "ArgumentError: Error #2004: One of the parameters is
    invalid" issue am I'm think its happening in the AS3 code (not
    the Java server side) and I don't know how to debug this.
    Any help would be appreciated. Thanks in advanced!

    I am also facing with the same problem.....
    Is there any resolution for this problem.?
    Not sure where i am going wrong.
    Any help will be appreciated.
    Thanks in advance.

  • Mxmlc / compc: automatically link in all source files?

    In the standard configuration, compc and mxmlc only link in classes actually used by your project. We're using code generation to get ActionScript classes from our Java classes for AMF serialization. We deal with most of these generically, so we don't automatically reference all the generated classes. Consequently, some of these are compiled out of the final .swf, causing hard-to-track-down serialization issues. Is there a simple way to tell mxmlc / compc to include *all* classes defined in a certain path? I tried to use include-sources, but when I just add all the source files to include-sources (I'm using mxmlc / compc through ant with a fileset for this purpose, for what it's worth, but the problem is not ant-specific), I get weird errors about circular inheritance. Any other strategies for achieving this?

    One way you might ba able to acomplish this is when you are auto-generating your actionscript classes from Java, create a file.
    internal class LinkClasses
        import mx.package.LinkClass;
    Include this class in the compc include class.
    This should alow the linker to pick up all classes very neatly.

  • Compc error --  DesignLayer not in namespace?

    Hi Everyone,
    I'm seeing this error in my build, anyone know why it could be happening ?
        [compc] Loading configuration file /Users/mrinalwadhwa/Projects/Blu/Development/flexsdk/trunk/frameworks/flex-config.xml
        [compc] Error: could not find source for class mx.core:DesignLayer in namespace
    Thank you,

    Did you ever resolve this?  I am getting the same thing.

  • [compc] Error: Inconsistant linkage

    Has anyone ran into this issue? I can't find any info on it on the web.
            <compc debug="${DEBUG_FLAG}" output="${CORE_DIR}/bin/launchpad-core.swc"
                        maxmemory="512m" fork="true" >
                <source-path path-element="${CORE_DIR}/src/" />
                <include-sources dir="${CORE_DIR}/src" includes="*"/>
                <library-path dir="${CORE_DIR}/libs" includes="*.swc" append="true"/>
                <library-path dir="${FLEX_HOME}/frameworks/libs/mobile" includes="*.swc" append="true"/>
                <library-path dir="${FLEX_HOME}/frameworks/libs/air" includes="*.swc" append="true"/>
                <library-path dir="${FLEX_HOME}/frameworks/themes/Mobile" includes="*.swc" append="true"/>
                <compiler.define value="${DEBUG_FLAG}}" name="CONFIG::debug"/>
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
        [compc] Error: Inconsistant linkage in /Applications/Adobe Flash Builder 4.5/sdks/4.5.1-air-3.0/frameworks/libs/air/airglobal.swc(,, - '' is marked as extern, but '' is not.
    /Volumes/Users/rcanulla/Desktop/aflac-build-server/build.xml:17: compc task failed.
      at flex.ant.FlexTask.executeOutOfProcess(
      at flex.ant.FlexTask.execute(
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      at java.lang.reflect.Method.invoke(
    Total time: 40 seconds

    Did you ever resolve this?  I am getting the same thing.

  • Ant tasks for mxmlc/compc?

    Are there "official" Ant tasks for mxmlc/compc?

        <taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${flexTasks.jar.loc}" />
        <taskdef name="compc" classname="flex.ant.CompcTask" classpath="${flexTasks.jar.loc}" />

  • 'compc' Clarification, please

    I am a little confused about syntax for the command-line
    component compiler, compc. Let's say I would like to build a .swc
    library from the following packages:
    What necessary compiler options should I include? Could
    someone give me an example compc command based on the above package
    Edit: I apologize: I should post this in an ActionScript

    Hi -
    I have read all the instructions and followed all the
    examples.. I was able to read all the classes in my classes and
    component directory. However, I keep getting '[compc] Error: could
    not find source for class src.classes:ArrowSeperatorSkin'..
    following is the build file I have. Please help..thx
    <?xml version="1.0"?>
    <!-- Required Environment Variables:
    FLEX_HOME: must point to the root of your flex sdk (probably
    in flex builder directory)
    <project name="Test" default="compile" basedir=".">
    <!-- Make the Flex Ant Tasks Available -->
    <taskdef resource="flexTasks.tasks"
    <!-- Module properties -->
    <property environment="env"/>
    <property name="build.dir" value="build"/>
    <property name="" value="NProject.swf" />
    <property name="root.mxml" value="main.mxml"/>
    <property name="locale" value="en_US"/>
    <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
    <!-- Clears out the build directory -->
    <target name="clean">
    <echo message="%%%%%%%%%%%%%% Removing build directory
    contents %%%%%%%%%%%%%%%%%"/>
    <delete includeemptydirs="true">
    <fileset dir="${build.dir}" includes="**/*"/>
    <!-- standard compile w/o debug -->
    <target name="compile">
    <antcall target="perform-compile">
    <param name="debugMode" value="true"/>
    <target name="perform-compile">
    <!-- Make sure the build directory exists -->
    <mkdir dir="${build.dir}"/>
    <!-- directories outside of your 'main' source directory
    <source-path path-element="${FLEX_HOME}/frameworks"/>
    <!-- list any swcs in your lib directory to include
    <!-- library-path dir="lib" append="true">
    <include name="a.swc"/>
    <include name="b.swc"/>
    </library-path -->
    <!-- flex sdk core libraries -->
    <library-path dir="${FLEX_HOME}/frameworks"
    <include name="libs"/>
    <include name="locale/${locale}"/>
    <!-- copy over the etc directory contents -->
    <antcall target="copy-files"/>
    <!-- Copies contents of /etc to /build -->
    <target name="copy-files">
    <copy todir="${build.dir}">
    <fileset dir="." includes="etc/**/*"/>
    <antcall target="swc">
    <param name="debugMode" value="true"/>
    <target name="swc">
    <mkdir dir="swc" />
    <pathconvert property="flex.classes" pathsep=" ">
    <fileset dir="${basedir}/src">
    <include name="**/*.as"/>
    <include name="**/*.mxml"/>
    <packagemapper from="${basedir}\*.as" to="*"/>
    <packagemapper from="${basedir}\*.mxml" to="*"/>
    <packagemapper from="${basedir}/*.as" to="*"/>
    <packagemapper from="${basedir}/*.mxml" to="*"/>
    <echo>********* ActionScript classes:
    [${flex.classes}] ***********</echo>
    <compc output="src/Your.swc"
    include-classes="${flex.classes}" debug="true"
    <source-path path-element="${basedir}/src"/>
    <include-file name="data.xml"
    <include-file name="extension.css"

  • Error: Could not resolve s:SolidColor to a component implementation

    So I have a library project and in that project I have a CustomDataGridBackgroundSkin file which is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx=""
                 minWidth="25" minHeight="25">
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        <!-- layer 4: fill highlight -->
        <s:Rect left="0" right="0" top="0" height="100%" >
                <spark:SolidColor color="0x968f89" alpha="1" />
    I am simply trying to get an ant task to compile this library to SWC, but I am getting a " Error: Could not resolve <s:SolidColor> to a component implementation" error during compile.  The only way to fix it is to add these lines of code (bold).
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx=""
                 minWidth="25" minHeight="25">
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        <!-- layer 4: fill highlight -->
        <s:Rect left="0" right="0" top="0" height="100%" >
                <spark:SolidColor color="0x968f89" alpha="1" />
    I can also get this error to go away if I put this line in my build.xml file: "<include-sources dir="${src.dir}" includes="*"/>"
    But then I get this error => "[compc] Error: Unsupported file type: C:\dev_projects\features\flex4version\web\OneVoice\src\components.xml"
    components.xml is my manifest file.
    Anyone know what the issue is?  Why would I need the xmlns:spark="*" namespace when I have xmlns:s="library://"?

    Curious. Which version of the Flex SDK are you using?
    Does this work if you try in a brand new project using Flex 4.1 or Flex Hero?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx=""
            <s:Button label="goto s1" click="currentState = 's1';" />
            <s:Button label="goto s2" click="currentState = 's2';" />
            <s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
            <s:State name="s1" />
            <s:State name="s2" />
        <s:Rect left="30" right="20" top="20" bottom="30" >
                <s:SolidColor color="0x968f89" color.s2="haloOrange" alpha="1" />

  • Compc task

    i use compc task to compile mxml files.
    the ant build file is
    <target name="appcompile">
                     <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                        <include name="${web.home}/WEB-INF/lib/" />
                        <include name="${flexsrc.home}/example/" />
                       <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                       <source-path path-element="${FLEX_HOME}/frameworks" />
    <target name="createHtmlWrapper" depends="appcompile">
      <html-wrapper application="${APP_ROOT}/CampusPage.mxml" height="1000" width="1000"  output="${catalina.home}/webapps/${}" swf="CampusPage" />
    but the error is
    [compc] Error: nothing was specified to be included in the library
        [compc] Use 'compc -help' for information about using the command line.
    any body help me

    You need to use options like -include-namespaces or -include-classes to tell compc what to put into the SWC. Are you expecting it to put everything on the source path into the SWC? It doesn't work that way.
    Gordon Smith
    Adobe Flex SDK Team

  • Are the Flex Ant tasks open source? If so, where to find them?

    I took a brief look into Flex SDK source and didn't see the Flex Ant tasks. Is this also open source? Where would I find it?
    I probably won't change anything, just want to take a look. Although, I'm annoyed that the tasks don't work in a similar fashion as the core ant tasks
    Note that the way the tasks are put together ain't exactly pretty--they're just a very thin wrapper on mxmlc / compc / etc. There are some advantages to this approach, but if you're hoping to learn about the compiler options by looking at the task source, it could take some doing.

  • Compiler sees delete function name as delete operator

    I am trying to call the 'delete' method on a POJO service with:
    This fails to compile with the errors:
    Error: Syntax error: expecting identifier before delete.
        [compc]          serviceProxy.delete(...);
        [compc]                       ^
    Error: Syntax error: expecting identifier before rightparen.
        [compc]          serviceProxy.delete(...);
        [compc]                                 ^
    It seems as if the compiler is detecting the call to the delete method as the delete operator instead. Is there a way to fix this or will I need to change the method name on the service?

    Ohhh, haha, yeah that could be a problem.
    Maybe try getOperation('delete') on your service and then call send() on the operation.

  • FlexUnit 0.9 only for Flex 3?

    Is the latest version of FlexUnit only usable for Flex3? I don't see mention of requirements for the new version but I get the following when trying to use the FlexUnit.swc:
    [compc] Loading configuration file C:\tools\flex2.0.1\frameworks\flex-config.xml
    [compc] Error: unable to load SWC FlexUnit.swc: unknown element script found in keep-as3-metadat a section in catalog.xml.
    Also, this might not be the proper forum for the question, but I do not see a general discussion forum available.
    Chris Schmidt

    Hi Alistair,
    Thanks, that does work with Flex2. I reused the flex ant tasks that we used with the previous version of FlexUnit. Are there plans on updating the ant task, or including them with the newer distributions of FlexUnit?

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

    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:
    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.

    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.

  • What could cause "Internal error: java.lang.NullPointerException: can't not add null to SWF frame" when using compc?

    using flex sdk 4.6, and air sdk
    we get the following error when using compc in our ant build:
    [java] Internal error: java.lang.NullPointerException: can't not add null to SWF frame
    [java] at com.adobe.flash.swf.SWFFrame.addTag(
    [java] at com.adobe.flash.compiler.internal.units.requests.SWFTagsRequestResult.addToFrame(SWFTagsR
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget.addCompilationUnitsAndDependenciesToF rame(
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrame(SWFTarg
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrames(SWFTar
    [java] at
    [java] at com.adobe.flash.compiler.internal.targets.SWCTarget.buildLibrarySWF(
    [java] at
    [java] at com.adobe.flash.compiler.clients.COMPC.buildArtifact(
    [java] at com.adobe.flash.compiler.clients.MXMLC.compile(
    [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(
    [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(
    [java] at com.adobe.flash.compiler.clients.COMPC.staticMainNoExit(
    [java] at com.adobe.flash.compiler.clients.COMPC.main(
    which seems to be rather vague, and offers no clue as to what caused the problem. so, my question is, what could cause this error?
    these are the compiler options we use in the build file:
    <java jar="${flex.compc.jar}" dir="." fork="true" failonerror="true">
          <jvmarg value="-Xmx512m" />
          <arg line="@{options} ${_compc.libpath} ${_compc.externspath} ${_compc.includespath}" />
          <arg value="+flexlib=${flex.frameworks.dir}" />
          <arg value="[email protected]{config}" />
          <arg value="[email protected]{src.dir}" />
          <arg value="[email protected]{src.dir}" />
          <arg value="[email protected]{dest}" />
          <arg value="[email protected]{swf.version}"/>
          <arg value="-debug=${flash.debug}"/>
          <arg value="-advanced-telemetry"/>
    assume that the properties resolve to correct values, since all projects (except one) call this task and compile successfully. the error must come from this one project that fails, but we don't know why.
    any ideas?

    You could be running out of memory, try increasing the -Xmx512m value to -Xmx1024m or another value that you prefer

  • [svn:fx-trunk] 10055: localized classpath fix for mxmlc.jar,compc. jar and asdoc.jar - add mxmlc_ lang .jar to the path.

    Revision: 10055
    Author:   [email protected]
    Date:     2009-09-08 09:41:10 -0700 (Tue, 08 Sep 2009)
    Log Message:
    localized classpath fix for mxmlc.jar,compc.jar and asdoc.jar - add mxmlc_.jar to the path.  Without these localized errors and warnings aren't generated.
    QE notes: ensure the errors and warnings are generated properly
    Doc notes: no
    Bugs: sdk-22806
    Tests run: checkintests:pass
    Is noteworthy for integration: no
    Ticket Links:
    Modified Paths:

    So do you know how I can get JavaStudio to add
    library classes and JAR''s into the packaged dist
    file?I was wrong in my previous post. Sorry.
    It's impossible to specify additional classpath with '-jar' option.
    When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored. �
    So the only solution is to add libs into jar file and declare them in manifest.
    One possible way of how to do it in JSE8 is:
    1. Put all necessary lib jars to some place under src folder.
    2. Add those jars into Compile-time libraries list (Project properties -> Libraries) for correct compilation
    3. Switch to 'Files' JSE8 tab, open file (it's in projects root) and add your lib jars to it.
    Syntax is:
    Class-Path: relative URLs
    That's it.

Maybe you are looking for

  • Hyperion Financial Reporting is taking long time to show the User POV

    Hi, we are using the HFR (version and when i double click on any report in the workspace it is taking 5 minutes to show me the User POV. Can any one of you let me know how to find where the issue is. Regards, VJ

  • Need to download a file which si space delimted and has fixed length char

    Hi, I have a custom report which downloads an output file in text format.I need the contents to be space delimited.My file data contains numbers as well as characters.I ahve pased the parameter WRITE_FIELD_SEPARATOR = ' ' in the FM.Hwoever the space

  • Problem in jdbc with Apache

    i wanne make my ResultSet Scrool when i make it causes Apache server to fail but when i use the same code in console application it gave me my result well when i make resultset in my jsp code forward only it run but not gave me valid date i see that

  • Stored Procedure in UCCX 8.x

      Pardon the simplicity of the question but we had a question arise that I am unable to find a solution in previous posts or in guides and I am not a programmer.  Customer wrote their scritping for UCCX 7 in Java because they had requirements for mut

  • Isync & PDA's

    I have a 4 year old desktop G4. At the moment I am thinking to get a PDA where I can get calls and check my e-mail and maybe surf the web. I have asked around and several people recomend the Treo 650 or 700p. However, I also like the nokia E62 and ot