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