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"/R







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!

Environment installation and setup --- install in Windows

In this example, j2sdk1.4.0 is used with tomcat4.0.5.

1. Use Archives:
1. j2sdk-1_4_0_01-windows-i586.exe
Download location: http://java.sun.com/j2se/1.4/download.html
2. jakarta-tomcat-4.0.5.zip
Download location: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/

Ii. installation steps:
1.execute j2sdk-rj4_0_01-windows-i586.exe and install it to C:/JDK (which can be modified by yourself). After installation, restart is required. Do not restart it.
2.decompress jakarta-tomcat-4.0.5.zip to C:/tomcat.

3. Set the execution environment:
1. window98:
(1) Modify C:/config. sys and add the following line.
Shell = C:/command. com/E: 4096/P
(2) Modify C:/autoexec. BAT and add the following settings.
Set Path = C:/JDK/bin; % PATH %
Set java_home = C:/JDK
Set catalina_home = C:/tomcat
Set classpath = C:/JDK/lib/
2. window2000 and XP:
(1) Click Start → set → console → system → advanced → environment variable
(2) locate the path of the system variable, click the "edit" button, add C:/JDK/bin to the end, and then press OK.
(3) Press "add", enter java_home in the variable name, enter C:/JDK in the variable value, and then press "OK.
(4) Press "add", enter catalina_home in the variable name, enter C:/tomcat in the variable value, and then press "OK.
(5) Press "add", enter classpath in the variable name, enter C:/JDK/lib in the variable value, and then press "OK.

4. Reboot and make the above settings take effect

5. Run Tomcat and enter msdos mode. Run/tomcat/bin/startup to start Tomcat. To disable tomcat, run/tomcat/bin/shutdown.

6. Test whether Tomcat is started. Open the browser and enter http: // localhost: 8080 in the URL column. If you can see the webpage, the installation settings are complete, you can start programming.

7. Can I use port 8080 instead of C:/tomcat/CONF/server. XML, find Port = "8080", change 8080 to 80, and then restart tomcat. However, if your computer has installed Web servers such as Apache or IIS, because they have used port 80, and if your Tomcat also uses port 80, so if you want to change port 8080 to port 80, make sure that your computer has not installed any web server.

8. What should I do if I have an Apache or IIS server installed? Can the two be combined?

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.