Beginner's introduction Classic: JSP environment configuration

Source: Internet
Author: User
Tags variables variable tomcat netbeans
JS [Note]: This article is reproduced http://www.cnjsp.org

The first part of the Java environment installation

1. The latest version of the current 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 the NetBeans IDE v 3.5.1 that contains the J2SE v 1.4.2



2. Installation! Every step of my way:




3. The catalogue attention is changed. "Installation path should not have spaces"! Because sometimes it's hard to tell whether "program Files" represent a single folder or two things for "program" and "Files."










4. Configure Environment variables



5. New system Variable



6. Build the first system variable: Java_home value: C:\j2sdk_nb\j2sdk1.4.2



7. Build a second system variable: CLASSPATH value:.; %java_home%\lib



8. Watch out! is a modification, not a new one.
System variable: The new value of PATH is preceded by the previous value plus%java_home%\in;



9. Test J2SDK installation and environment variable settings are correct



So the display is exactly the same as the new ones. Ok!
Then you can use a. java to compile to class to execute.


Part II 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 of the place is automatically found, and if you appear "no Java Virtual machine Found" That is, you cannot find the Java VM.
Indicates that your system variables are not set, and that the system variables are set to
http://www.cnbruce.com/blog/showlog.asp?cat_id=26&log_id=295
"Java Environment Installation" is explained






5. Run the Binstartup.bat in the Tomcat directory. Start Tomcat.



6. If there is a DOS window that stays closed, and there are some running successful tomcat and initialization information, it proves that Tomcat is running successfully.



7. Enter http://localhost:8080 in the browser address bar
Cute big cat appears, so far, JSP's operating environment set up!



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.