This page explains how to set up Ubuntu 64 bit machine for RIA Flex Development
Set up Ubuntu 64 Bit for Adobe Flex Development
Step1: Install Flash 10 On
Adobe has released Flash 10. The plugin is of better quality than Flash 9. I will add this manual install section for those that would like to do it themselves. I would only use the instructions on Hardy, though Gutsy might work.
Click Here to download Getlibs
Click Here to get Flash 10
Save the files to your desktop, if you save files to a different location, drag them to your desktop.
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
Code:
tar -xzvf install_flash_player_10_linux.tar.gz install_flash_player_10_linux
sudo mv -f ~/Desktop/install_flash_player_10_linux/libflashplayer.so /usr/lib/firefox-addons/plugins/
Code:
sudo nspluginwrapper -i /usr/lib/firefox-addons/plugins/libflashplayer.so
sudo ln -s /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/
If flash does not work
DO Not install other scripts. Run all the commands above again. Other scripts will only make 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 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.
Step3: Import Existing Flex Projects
Because currently FlexBean does not have import from existing source feature, some tricks are 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 <PROJECT_PATH_PREFIX>/MyFlexApp/src
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.
Step4: Build Flex Project
To compile from commandline (NOTE: Need to specify absolute path, '~' does not work)
| mxmlc QosMain.mxml -compiler.include-libraries+=/home/jessica/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 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.
Step 5: Set up JDBC
Do
- Comments
Only registered users can write comments!
Powered by !JoomlaComment 4.0alpha3
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."
| < Prev |
|---|





