Set Up RIA Development Environment On Ubuntu
Set Up RIA Development Environment On Ubuntu
First
1. Open a terminal and execute the following commands for removal of old plugins. Some
may error out saying they cant find a file, that's ok. We just want to make sure they are
removed if they exist.
Code:
sudo apt-get -y purge nspluginwrapper
sudo apt-get -y purge mozilla-plugin-gnash
sudo apt-get -y purge swfdec-mozilla
sudo rm -rfd /usr/lib/nspluginwrapper
sudo rm -f /usr/lib/firefox-addons/plugins/libflashplayer.so
sudo rm -f /usr/lib/mozilla/plugins/flashplugin-alternative.so
sudo apt-get purge flashplugin-nonfree
sudo rm -f /usr/lib/firefox-addons/plugins/libflashplayer.so
sudo rm -f /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so
Code:
cd ~/Desktop
sudo apt-get -y install nspluginwrapper
sudo dpkg -i getlibs-all.deb
sudo getlibs -p libcurl3
sudo getlibs -p libnss3-1d
sudo getlibs -p libnspr4-0d
Download Flex SDK from Adobe site. The version I downloaded was 3.3.0.4852. Unzip the
tar 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 to
open 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, which
is where the Flex SDK tar ball was extracted to.
To link the existing source directory to MyFlexApp project, cd to where MyFlexApp project is
stored. There is a "src/" directory
cd <PROJECT_PATH_PREFIX>/MyFlexApp
rm -f -r src
ln -s <EXISTING_SOURCE_DIR> src
cd src
ln -s <EXISTING_MAIN_MXML> Main.mxml
cd ~/netbeanprojects/FlexQosApp
rm -f -r src
ln -s ~/dev/jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/com src
ln -s ~/dev/jboss-4.2.2.GA/server/default/deploy/QosExplorer.war/QosMain.mxml
Main.mxml
Now if you look under the src directory again, you will see the existing source code there.
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 by
selecting "QosFlexApp" project from Project Panel, and right click to select "Property". On
left "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 the
external swc libraries. Now you should be ready to build and run from IDE.