Building the development environment for Java Web projects

Source: Internet
Author: User
Tags java web

1. Installation of JDK:

Download: http://java.sun.com

Select Javase, find the JDK and download it. Configure environment variables after installation.

Configuration of environment variables:

Control layout-System-Advanced system settings-environment variables:

(1) JAVA_HOME:JDK installation path, such as mine is D:\Program Files (x86) \java\jdk1.8.0_112;

(2) Path:%java_home%\bin;

(3) CLASSPATH:.; %java_home%\lib; (Note that the dot plus the colon plus% ...) )

Verify that the JDK was successfully installed: On the command line, enter: Java-version, Javac, and Java. The following shows the configuration success.

2. Download and install Tomcat

: http://www.apache.org/

Find Tomcat, select the desired version, and select the core below. Different system corresponding to different file types, my is windows, so choose Zip file download.

Unzip to the location you want, then configure the environment variables.

(1) Catalina_home:tomcat decompression path, such as mine is D:\Program Files (x86) \java\apache-tomcat-8.5.28;

(2) Classpath:%catalina_home%\lib\servlet-api.jar;

(3) Tomcat_home:tomcat decompression path, D:\Program Files (x86) \java\apache-tomcat-8.5.28;

(4) Path:%catalina_home%\bin;

After configuration, locate the Bin folder in the Extract directory, find "Startup.bat" in it and double-click the batch file to display.

Enter address in browser: http://localhost:8080/

The following instructions are displayed for successful configuration:

Double-clicking the "shutdown.bat" file will close. At this point in the browser to enter the address, it will appear as follows:

3. Install MySQL Database

: https://dev.mysql.com/downloads/mysql/5.0.html

To find the appropriate version, I downloaded:

Building the development environment for Java Web projects

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.