Note that there are some explanatory texts on larger screens.

plurals
  1. POAnt and Flex-4 problem, MXMLC.jar not found !
    primarykey
    data
    text
    <p>I updated a flex application from flex 3.5 to flex 4.0. We are using ant for compiling our project and we have a mxmlc task to handle the flex part. After the upgrade, our mxmlc task broke.</p> <p>Here is the task definition:</p> <pre><code>&lt;taskdef resource="flexTasks.tasks"&gt; &lt;classpath&gt; &lt;pathelement path="${FLEX_HOME}/ant/lib/flexTasks.jar"/&gt; &lt;fileset dir="${FLEX_HOME}/lib"&gt; &lt;include name="**/*.jar"/&gt; &lt;/fileset&gt; &lt;/classpath&gt; &lt;/taskdef&gt; </code></pre> <p>And here is mxmlc task</p> <pre><code>&lt;mxmlc file="${src}/Main.mxml" output="${build}/main.swf" debug="true" target-player="10" services="../src/main/webapp/WEB-INF/flex/services-config.xml" context-root="/" &gt; &lt;compiler.library-path dir="${lib}"&gt; &lt;include name="*.swc"/&gt; &lt;/compiler.library-path&gt; &lt;compiler.library-path dir="${FLEX_HOME}/frameworks/libs"&gt; &lt;include name="*.swc"/&gt; &lt;/compiler.library-path&gt; &lt;compiler.library-path dir="${FLEX_HOME}/frameworks/libs/player/10.0"&gt; &lt;include name="*.swc"/&gt; &lt;/compiler.library-path&gt; &lt;compiler.library-path dir="${FLEX_HOME}/frameworks/locale"&gt; &lt;include name="**/*"/&gt; &lt;/compiler.library-path&gt; &lt;/mxmlc&gt; </code></pre> <p>And we are getting:</p> <pre><code>The class not found in jar file: mxmlc.jar </code></pre> <p>I checked the ${FLEX_HOME}/lib folder and I can see the mxmlc.jar file there.</p> <p>Here is the verbose output of ant:</p> <pre><code>build.xml:69: The class not found in jar file: mxmlc.jar at flex.ant.FlexTask.resolveClass(FlexTask.java:347) at flex.ant.FlexTask.executeInProcess(FlexTask.java:273) at flex.ant.FlexTask.execute(FlexTask.java:225) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) </code></pre> <p>I appreciate your comments for resolving this matter,</p> <p>Thanks, -A</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload