9.16 Java WEB Application development environment and development tools (update)

Source: Internet
Author: User
Tags java web tomcat server

1.JDK Download and Installation

1.1 Download the latest JDK version on the Web site: http://javase/downloads/index.jsp website

1.2 Install the JDK, double-click the downloaded. exe file to run, generally by default installed on the C drive, the installation completed directory in C:\Program Files (x86) \java,

Then there are jdk1.6.0_2 and jre6 two subdirectories in this directory. They store Java's operating environment and development environment respectively.

1.3 also set the environment variables, with myeclipse words are self-brought (in the "Computer-Properties-Advanced system settings-environment variables-

Locate the path where you added the Java installation "This is my C:\Program Files (x86) \java)

installation and configuration of 2.Tomact servers

2.1 tomact Download http://tomcat.apache.org Download the latest version, click the. exe file to launch the Tomact installation file,

Follow the wizard and hold down next to automatically complete the Tomcat installation, note that the installation path "C:\Program Files (x86) \java" is set here.

Do not set its default path, set to default installation (port number: 8080, username: admin, password: null)

Finally choose the installation, you can complete the Tomcat installation, after the installation is complete, the "Start-Programs-" menu will add appche Tomcat6.0 menu group.

2.2 Testing Tomcat

Open IE Browser, enter http://localhost:8080 or http://127.0.0.1:8080 in the address bar

(both localhost:8080 and 127.0.0.1 represent the local browser, and 8080 is the port number of the default listener for Tomcat), which will open the default home page for Tomcat.

2.3 Tomcat's directory structure

The Tomcat installation directory has

/bin: Storing command files to start and close Tomcat  

/conf: A configuration file that stores tomcat, such as Server.xml,web.xml

/lib: A jar file that can be accessed by the Tomcat server and all Web applications

/log: Log file that holds Tomcat

/temp: Storing temporary files generated by Tomcat runtime

/webapps: Usually place directories and files of Web applications in this directory

/work:tomcat Place JSP-generated servlet source files and bytecode files in this directory

Note: For developing javaweb applications, after deployment, their applications are placed under directory/webapps with a certain directory structure

9.16 Java WEB Application development environment and development tools (update)

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.