1. install Java
Http://download.chinaunix.net/download.php? Id = 28692 & resourceid = 12304
1. mkdir/usr/Java
2. chmod + x jdk-6u16-dlj-linux-amd64.bin
3 ../jdk-6u16-dlj-linux-amd64.bin
4. CD/usr/Java/jdk1.6.0 _ 16/JRE/lib
5. unpack200 Rt. packrt. Jar
6. CD/usr/Java/jdk1.6.0 _ 16/lib
7. unpack200 tools. packtools. Jar
8. VI/etc/profile
Add the following three environment variables
Exportjava_home =/usr/Java/jdk1.6.0 _ 16
Exportclasspath =.: $ java_home/JRE/lib/RT. jar: $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Exportpath = $ path: $ java_home/bin
9. Source/etc/profile
Ii. Install flex
Http://www.adobe.com/devnet/flex/flex-sdk-download.html
1. Unzip flex_sdk_4.6.zip
It is best to create a new directory/data/flex. After decompression, the files are dispersed.
In fact, this can be used,
/Data/flex/bin/mxmlc helloworld.
However, it is not easy to use.
2. Modify the frameworks/flex-config.xml File
<Static-link-runtime-shared-libraries> false </static-link-runtime-shared-libraries>
<Static-link-runtime-shared-libraries> true </static-link-runtime-shared-libraries>
3. Set the bin/mxmlc command to global, similar to the Java command added above (assuming flex_sdk is decompressed in the/data/flex directory)
VI/etc/profile
Modify
Exportclasspath =.: $ java_home/JRE/lib/RT. jar: $ java_home/lib/dt. jar: $ java_home/lib/tools. jar:/data/flex/lib
Exportpath = $ path: $ java_home/bin:/data/flex/bin
Then run
Source/etc/profile
4. mxmlc helloworld.
Compile helloworld.swf