1.目前J2SDK的最新版本是1.4.2_01,下载地址:http://java.sun.com/j2se/1.4.2/download.html
Download NetBeans IDE v 3.5.1 with J2SE v 1.4.2 COBUNDLE
采用包含了J2SE v 1.4.2的NetBeans IDE v 3.5.1

2. 安装!我的每一步:


3. 目录注意改下。“安装路径不宜有空格”!因为有时很难区分“Program Files”是代表一个文件夹还是代表“Program”和“Files”两个东西








4. 配置环境变量

5. 新建系统变量

6. 建第一个系统变量:JAVA_HOME 值:C:\j2sdk_nb\j2sdk1.4.2

7. 建第二个系统变量:CLASSPATH 值:.;%JAVA_HOME%\lib

8. 注意!是修改,不是新建。
系统变量:PATH 的新值是在原有值前加上%JAVA_HOME%\in;

9. 测试j2sdk的安装与环境变量设置是否正确

所以显示完全和新建的吻合。OK!
接着就可以用一个.java来编译为class来执行了。
第二部分 TOMCATv5.0.16安装
1,下载最新的TOMCATv5.0.16
http://www.apache.org/dist/jakarta/tomcat-5/v5.0.16/bin/

2. 安装TOMCATv5.0.16


选择Custom

3. 路径自己设定一下


4. 该处的JVM是自动查找的,如果您出现“No Java Virtual machine Found” 也就是找不到Java虚拟机。
说明您的系统变量还没有设定,有关系统变量的设定在
http://www.cnbruce.com/blog/showlog.asp?cat_id=26&log_id=295
“JAVA环境安装”已做解释




5. 运行tomcat目录里binstartup.bat。启动tomcat.

6. 假如有个dos窗口停留着没关闭,并有一些运行成功tomcat和初始化信息,证明tomcat运行成功。

7. 在浏览器地址栏输入 http://localhost:8080
可爱的大猫出现,至此,JSP的运行环境设定完毕!
