A classic for beginners: Jsp environment configuration
Author:Eve ColeUpdate Time:2009-07-02 17:17:00
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 Using NetBeans IDE v 3.5.1 including J2SE v 1.4.2
2. Install! Every step I take:
3. Please change the directory. "The installation path should not have spaces"! Because sometimes it is difficult to distinguish whether "Program Files" represents a folder or represents two things: "Program" and "Files"
4. Configure environment variables
5. Create new system variables
6. Create the first system variable: JAVA_HOME value: C:j2sdk_nbj2sdk1.4.2
7. Create a second system variable: CLASSPATH value: .;%JAVA_HOME%lib
8. Attention! It is a modification, not a new creation. System variable: The new value of PATH is to add %JAVA_HOME% in before the original value;
9. Test whether the j2sdk installation and environment variable settings are correct
So the display is completely consistent with the new one. OK! Then you can use a .java to compile it into a class for execution.
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. Set the path yourself
4. The JVM here is automatically searched. If you see "No Java Virtual machine Found", it means that the Java virtual machine cannot be found. It means that your system variables have not been set yet. The setting of system variables is in http://www.cnbruce.com/blog/showlog.asp?cat_id=26&log_id=295 "JAVA environment installation" has been explained
5. Run binstartup.bat in the tomcat directory. Start tomcat.
6. If there is a DOS window that remains and is not closed, and there are some successful tomcat running and initialization information, it proves that tomcat is running successfully.
7. Enter http://localhost:8080 in the browser address bar. The cute big cat appears. At this point, the JSP running environment is set up!