# Ant mxmlc task don't compile with FlexSDK 4

**URL:** https://forum.kirupa.com/t/ant-mxmlc-task-dont-compile-with-flexsdk-4/271536
**Category:** Uncategorized
**Created:** [September 24, 2008, 12:25pm UTC](https://forum.kirupa.com/t/ant-mxmlc-task-dont-compile-with-flexsdk-4/271536 "2008-09-24T12:25:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vola](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vola](https://forum.kirupa.com/u/vola)
#### Post date: [September 24, 2008, 12:25pm UTC](https://forum.kirupa.com/t/ant-mxmlc-task-dont-compile-with-flexsdk-4/271536/1 "2008-09-24T12:25:25Z")

</div>

Hello.  
I try to compile via ant with Flex 4 SDK, but get an error:

```auto

  <mxmlc file="${src.dir}/Client.as" output="${bin.dir}/client.swf" keep-generated-actionscript="false">

			<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
			<source-path path-element="${FLEX_HOME}/frameworks" />
			<default-size width="${swf.width}" height="${swf.height}" />
			<default-frame-rate>31</default-frame-rate>
			<default-background-color>0x869CA7</default-background-color>
			<use-network>false</use-network>
</mxmlc>

```

when FLEX\_HOME = D:/Distr/adobe/flex\_sdk\_4.0.0.3309/ - an error throws:

BUILD FAILED  
D:\_work\_workspaces hird\_new\p2p\build.xml:105: The class not found in jar file: mxmlc.jar

It is very similar with [this](http://bugs.adobe.com/jira/browse/SDK-15250), but there shown fix status.

With Flex 3 sdk - all works good. How to resolve this ?
