Sunday, February 13, 2011

How to build the Flex SDK

Gigantt's UI is built with Adobe Flex 4.1. It's a great web development SDK, but Adobe is notoriously slow to respond to bug reports. So sometimes we find ourselves having to go into the Flex SDK's source code in order to debug stuff or work around bugs. In order to fix a bug in mx:DateField today I had to download and build the SDK (which is open source) from Adobe.It's not hard, but I thought I'd share the how-to with the world:

How to build the Flex SDK on Windows

(based on Windows 7 64-bit)

Prerequisites

Java - You'll need the JDK, not just the JRE (the runtime which comes with Flash Builder, for example).

I used the 64 bit version:"c:\Program Files\Java\jdk1.6.0_23"

Ant - You can download the binaries: http://ant.apache.org/bindownload.cgi

I used 1.8.2

Just unzip it to c:\dev\ant

Flex open-source SDK

I used 4.1.0.16076

Unzip it to c:\dev\sdk (just for simplcity)

Building

Let's create a batch file to set some useful envars: envars.bat

set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_23
set PATH=c:\dev\ant\bin;%PATH%
set ANT_OPTS=-Xmx256m

1 comment:

Thank you for the information.I find it useful to know how to build flex SDK on Windows.I faced the problem when tried to implement the special code into my project connected with virtual data room. Now I know how to deal with that when working with data room providers comparison.