分类: Java
2009-01-13 22:05:13
Java Flex
Integrated Development environment
Just for
my notes, it may be not clear enough, and write down all detail. You should
not refer to this article if you are freshman.
1.
Install
JDK, Eclipse, Tomcat, as common windows exe software
2.
Get
tomcatPluginV32.zip from apache foundation, and get mysql-connector-java-
3.
Download
blazeds_turnkey_3-0-0-544.zip extract to any directory that you like the
application will locate. And download Adobe
Flex Builder
4.
Duplicate
this directory and rename the new one to your own project name. $extract_dir\blazeds_turnkey_3-0-0-544\tomcat\webapps\blazeds.
5. Then you are able to create Flex project in Eclispe same as Flex Builder but change the location of the project to where $your_project created by step 4.
6.
Change
the options of “server location” to proper location and validate the
configuration.
7.
If
you still didn’t start the tomcat, finish creating the project first. You can
right click the project and select propery and locate “Flex Server” to verify
your configuration is correct.
That is
all you can develop Java+Flex APP in the IDE.
PHP and
Flex IDE
1.
Install
Eclipse(PDT) the version should be under
2.
Get
Wamp and install it. Install it and set the PHP server from Eclipse ->
windows preference.
3.
Create
PHP project and set the aliase in WAMP, left click WAMP-> apache->apache
directory->add alias; add the proper directory.
Right
click the PHP project ->Flex project Nature, add the Flex nature.
4.
And
configure the web root
5. All is done.
How to start Blazeds server?
1. Unzip the blazeds_turnkey_XXX.zip
2. Change following environments :
CATALINA_HOME=D:\blazeds_turnkey\tomcat
classpath=C:\ProgramFiles\Java\jre1.5.0_08\lib\dt.jar;C:\Program Files\Java\jre1.5.0_08\lib\tools.jar;.
path = %path%;C:\Program Files\Java\jre1.5.0_08\bin
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10
path = %path%;%JAVA_HOME%\bin
classpath=%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;.
CATALINA_HOME=F:\dev\blazeds\tomcat
3. start the HSQLDB : {install_dir}/sampledb/startdb.bat
start the tomcat {install_dir}/tomcat/bin/startup.bat //You can set the Tomcat Home Path to //the BlazeDs tomcat. and start tomcat in //Eclipse.
4. open browser
5. /samples/testdrive-httpservice/index.html
click 'get data'