Beginners: JSP environment Configuration

Source: Internet
Author: User
Tags netbeans
Part 1 installation in the Java environment

1. The latest j2sdk version is 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
Use netbeans ide v 3.5.1 that includes j2se v 1.4.2

2. Install! Each of my steps:

3. Change the directory. "The installation path should not contain spaces "! It is sometimes difficult to tell whether "Program Files" represents a folder or "program" or "Files ".







4. Configure Environment Variables

5. Create System Variables

6. Create the first system variable: java_home; Value: C:/j2sdk_nb/j2sdk1.4.2

7. Create the second system variable: classpath value:.; % java_home %/lib

8. Note! Yes, not new.
System variable: the new value of path is % java_home %/in before the original value;

9. Check whether the j2sdk installation and environment variable settings are correct.

So the display completely matches the new one. OK!
Then we can use. Java to compile and execute it as a class.

Part 2 atatv5.0.16 Installation

1. download the latest atatv5.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.

4. The JVM is automatically searched here. If you see "no Java Virtual Machine found", the Java Virtual Machine cannot be found.
It indicates that your system variables have not been set.
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 a DOS window remains closed, and some information about successful running Tomcat and initialization proves that Tomcat is running successfully.

7. Enter http: // localhost: 8080 in the address bar of the browser.
The cute big cat appears. Now, the JSP runtime environment has been 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.