1.下載安裝JDK1.4.2
2.下載安裝Tomcat5
3.下載安裝Eclipse3.1
4.下載安裝MyEclipse4.0
5.下載安裝ANT1.6.5
6.配置環境變量﹕
(1) JAVA_HOME D:\j2sdk1.4.2_10
(2)CLASSPATH .;D:\j2sdk1.4.2_10\lib\tools.jar;D:\j2sdk1.4.2_10\lib\dt.jar
(3)ANT_HOME E:\javaLib\apache-ant-1.6.5
(4)PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\Wbem;D:\j2sdk1.4.2_10\bin; E:\javaLib\apache-ant-1.6.5\bin
(5)CALALINA_HOME D:\Tomcat 5.0
註:(5)為可選﹐不配置也可以
7.eclipse,myeclipse配置﹕
(1)window/preferences/java/installed jres 新增jre﹐例如D:\j2sdk1.4.2_10, 並打勾
(2)window/preferences/myeclipse/application servers/Tomcat5.0 單選設置為enable﹐路徑為D:\Tomcat 5.0
(3)window/preferences/myeclipse/database explorer/drivers 新增MySQL Connector/J Driver﹐example URL﹕jdbc:mysql://localhost:3306/shop﹐driver class name﹕com.mysql.jdbc.Driver﹐driver libraries﹕D:\Borland\Together\Architect2006\eclipse\mysql-connector-java-3.0.16-ga-bin.jar
註:(3)中shop為數據庫名字﹐可根據情況變化﹔driver libraries中路徑為mysql驅動包地址