set up ria development environment on ubuntu

Upload: jessica-chiang

Post on 30-May-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Set Up RIA Development Environment on Ubuntu

    1/3

  • 8/14/2019 Set Up RIA Development Environment on Ubuntu

    2/3

    sudo ln -s /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so/usr/lib/firefox-addons/plugins/

    Then restart your browser.If flash does not workDO Not install other scripts. Run all the commands above again. Other scripts will onlymake things worse.DO Not try other methods, these may leave files in place that will cause problems.Read the How to get help section below before making any posts.

    Step2: Install Flex SDK and FlexBean Plugin

    Download Flex SDK from Adobe site. The version I downloaded was 3.3.0.4852. Unzip thetar ball to any location on your machine.

    Installed NetBeans 6.5.1 and download FlexBean . To install FlexBean plugin, unzip it first,then NetBeans->Tools->Plugins, click "Downloaded" Tab, and click "Add Plugins" button toopen the "Add Plugins" dialog, then browse to the unzipped org-netbeans-module-flexbean-1.1.1.nbm, click OK to save. Finally click "Install" to install the FlexBean plugin.

    Next, set the Flex SDK from NetBeans menu bar: "Toos"->"Flex Platforms". A dialog titled"Flex Platforms" will pop up; click "Add Platform..." to browse to the Flex SDK folder, whichis where the Flex SDK tar ball was extracted to.

    Step3: Import Existing Flex ProjectsBecause currently FlexBean does not have import from existing source feature, some tricksare requested to import an existing Flex project. First, create a new Flex Application by"File"->"New Project", select "Flex Application", enter any project name say "MyFlexApp"

    and click OK. Now you have a project that contains one source file, Main.mxml under/MyFlexApp/src

    To link the existing source directory to MyFlexApp project, cd to where MyFlexApp project isstored. There is a "src/" directory

    cd /MyFlexApprm -f -r srcln -s srccd srcln -s Main.mxml

    cd ~/netbeanprojects/FlexQosApp

    rm -f -r srcln -s ~/dev/jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/com srcln -s ~/dev/jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/QosMain.mxmlMain.mxml

    Now if you look under the src directory again, you will see the existing source code there.

    Step4: Build Flex Project

    http://sourceforge.net/projects/flexbeanhttp://sourceforge.net/projects/flexbean
  • 8/14/2019 Set Up RIA Development Environment on Ubuntu

    3/3

    used the following command to build my project's main mxml file, QosMain.mxml. Replace

    the file name and the library path to fit your setting.

    mxmlc QosMain.mxml -compiler.include-libraries+=~/dev/jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/WEB-INF/flex/user_classes/

    To compile from NetBeans IDE. First set the external library to include that in ~/dev/ jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/WEB-INF/flex/user_classes byselecting "QosFlexApp" project from Project Panel, and right click to select "Property". Onleft "Categories" panel of "Property" dialog, select "Libraries", then under "Components"section, click "External" tab, and then click "Add Ext" button to browse to the location of theexternal swc libraries. Now you should be ready to build and run from IDE.