开始部分:
[1]安装jdk 5
[2]下载Tomcat
[3]安装Eclipse及相关plugins
[4]实例测试
[1]安装jdk 5:
下载jdk-1_5_0_07-nb-5_0-win-ml.exe
http://java.sun.com/j2se/1.5.0/download-netbeans.html
安装至D:\jdk1.5.0_07
新增环境变量JAVA_HOME=D:\jdk1.5.0_07
D:\jdk1.5.0_07\bin加入至PATH中
D:\jdk1.5.0_07\lib\dt.jar及D:\jdk1.5.0_07\lib\tools.jar加入至CLASSPATH中
执行D:\>java -version
输出java version "1.5.0_07" 即安装成功。
[2]下载Tomcat:
下载apache-tomcat-5.5.20.zip
http://www.eng.lsu.edu/mirrors/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.zip
解压缩至C:\apache-tomcat-5.5.20
[3]安装Eclipse及相关plugins:
安装Eclipse:
下载eclipse-SDK-3.2.1-win32.zip
http://www.eclipse.org/downloads/
http://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops/R-3.2.1-200609210945/eclipse-SDK-3.2.1-win32.zip
解压缩至c:\eclipse_tptp
安装Eclipse Callisto plugins:
点击c:\eclipse_tptp\eclipse.exe执行Eclipse
选择Help -> Software Updates -> Find and Install -> Search for new features to install
按Next后点选Callisto Discovery Site后按Finish
然后选择最接近的下载,点安装,然后随C and C++ Developement外,全部安装。
如下图所示
eclipse_tptp_1.gif
這里下载安装使用超过20分钟。最好选择较接近的下载点。
[4]实例测试:
执行Eclipse c:\eclipse_tptp\eclipse.exe
切換至J2EE Perpective
Window -> Open Perpective -> Other ->> J2EE
按OK
建立测试項目:
File -> New -> Project ->> Web -> Dynamic Web Project 按 Next
Project name:Jasper2Sample
然后按Finish
右键点选Jasper2Sample -> Properties -> Java Build Path -> Source
按Add Folder再按Create New Folder
Folder name : output_servlet
然后按Finish及OK如下图所示
共3页: 1 [2] [3] 下一页 |