Part 1 Java environment installation
1. The latest version of J2SDK is 1.4.2_01, download address:
http://java.sun.com/j2se/1.4.2/download.html Download NetBeans IDE V 3.5.1 with J2se V 1.4.2 Cobundle, NetBeans Ide V 3.5.1 containing J2SE V 1.4.2
2. Install the diagram:
3. Directory pay attention to change. "Installation path should not have spaces"! Because sometimes it is difficult to distinguish between "program files" or represent a folder or represent "program" and "files" two
4. Configure environment variables
5. New system variable
6. Jian first system variable: java_home value: c: /j2sdk_nb/j2sdk1.4.2
7. Construction Second System Variables: ClassPath Value:.;% Java_Home% / LIB
8. Pay attention! It is a modification and is not new. System variable: The new value of PATH is before the original value, plus% java_home% / in;
9. Test if the J2SDK installation and environment variable settings are correct
Therefore, it will be displayed completely and newly consistent. Then you can use one .java to compile to Class to execute.
Part 2 Tomcatv5.0.16 installation
1. Download the latest Tomcatv5.0.16 http://www.apache.org/dist/jakarta/tomcat-5/v5.0.16/bin/
2. Install Tomcatv5.0.16
Select Custom
3. Path to set it yourself
4. The JVM of the site is automatically found. If you appear "No Java Virtual Machine Found" is also found to find the Java virtual machine. Note Your system variable has not been set, and the settings for system variables are explained in http://www.cnbruce.com/blog/showlog.asp?cat_id=26&log_id=295"java environment installation
5. Run the Tomcat directory BINSTARTUP.BAT. Start Tomcat.
6. If there is a DOS window, there is no shutdown and some run success Tomcat and initialization information, which proves that Tomcat is running successfully.
7. Enter http:// localhost: 8080 cute big cats appear in the browser address bar, to this, JSP's operating environment is complete!