Development with Flex3.0SDK In Debian

Source: Internet
Author: User
Debian is developed using Flex3.0SDK-Debian Technology for Linux release. The following is a detailed description. Flex 3.0 is cross-platform, but it is a little troublesome to compile swf with the Flex SDK In Debian (Linux. After some exploration, we finally solved the problem.
Record the problems encountered during compilation and their solutions as follows:

1. Download the Flex 3.0 SDK in http://opensource.adobe.com

2. decompress the package ~ /Software/flex_sdk_3

3. Add environment variables and open ~ /. Bashrc: Add a new row at the end of the file: export PATH = ~ /Software/flex_sdk_3/bin: $ PATH

4. Open a terminal again, go to the directory where the source code is located, and execute: mxmlc Main. mxml, but the error message is displayed:

/Home/loaden/Software/flex_sdk_3/bin/mxmlc: line 47: 3323 Segmentation fault java $ VMARGS-jar "$ FLEX_HOME/lib/mxmlc. jar "+ flexlib =" $ FLEX_HOME/frameworks "$ @"

5. Check the information, found that the need to install Java 6 runtime environment: sudo apt-get install sun-java6-jre

6. Repeat Step 4 after installation, but the error persists. If the terminal moves java -- version, the error is still 1.5.

7. Modify flex_sdk_3/bin/mxmlc and set

Java $ VMARGS-jar "$ FLEX_HOME/lib/mxmlc. jar" + flexlib = "$ FLEX_HOME/frameworks" "$ @"

Modify
/Usr/lib/jvm/java-6-sun/bin/java $ VMARGS-jar "$ FLEX_HOME/lib/mxmlc. jar "+ flexlib =" $ FLEX_HOME/frameworks "$ @"

8. After compilation is successful, the following message is displayed:
Loading configuration file/home/loaden/Software/flex_sdk_3/frameworks/flex-config.xml
/Home/loaden/pingpao/src/Main.swf (287977 bytes)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.