Chinaunix首页 | 论坛 | 博客
  • 博客访问: 146954
  • 博文数量: 52
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 12:05
文章分类

全部博文(52)

文章存档

2013年(1)

2010年(3)

2009年(6)

2008年(25)

2007年(17)

我的朋友

分类: 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-5.0.8.zip(mysql-connector-java-5.0.8-bin.jar in it) from mysql official site then extract them to the plugin directory of Eclipse.

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 3.0.1 -plugin.exe from Adobe then install it to Eclipse directory.

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 3.2.2, and install Adobe Flex Builder 3.0.1 -plugin.exe to Eclise directory.

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'

 

阅读(2012) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~