Beginners: Jsp environment Configuration

Source: Internet
Author: User
Tags netbeans
Beginners: Jsp environment configuration-general Linux technology-Linux programming and kernel information. For details, see the following. 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




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142953309.gif'); ">

2. Install! Each of my steps:




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954192.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954503.gif'); ">

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 ".




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954240.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954465.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954580.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954145.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954380.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954592.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954247.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142954250.gif'); ">

4. Configure Environment Variables




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955986.gif'); ">

5. Create System Variables




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955949.gif'); ">

6. Create the first system variable: JAVA_HOME; Value: C: \ j2sdk_nb \ j2sdk1.4.2




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955660.gif'); ">

7. Create the second system variable: CLASSPATH value:.; % JAVA_HOME % \ lib




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955376.gif'); ">

8. Note! Yes, not new.
System variable: the new value of PATH is % JAVA_HOME % \ in before the original value;




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955960.gif'); ">

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




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955132.gif'); ">

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/




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955484.gif'); ">

2. Install TOMCATv5.0.16




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955745.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955984.gif'); ">

Select Custom




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955930.gif'); ">

3. Set the path.




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955612.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955736.gif'); ">

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




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955123.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142955328.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142956797.gif'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142956179.gif'); ">

5. Run binstartup. bat in the tomcat directory. Start tomcat.




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/uploadfiles_8734/200607/20060704142942650.gif'); ">

6. If a dos window remains closed, and some information about successful running tomcat and initialization proves that tomcat is running successfully.




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142956700.gif'); ">

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!




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // java.chinaitlab.com/UploadFiles_8734/200607/20060704142956126.gif'); ">
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.