One, JDK installation
1. Download the JDK installation package
2. Run the installation package to select the installation path
To install the JDK, choose the directory simply by the default installation directory (for example: D:\java),
Install the JRE and install the JDK directory,
After installation: D:\java\jdk,d:\java\jre
3. Configure Environment variables
System variables → New →java_home: Complete the JDK installation directory (for example: D:\JAVA\JDK)
System Variable →path→ edit: Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value ( Note If the value of the variable has no semicolon at the end, enter the semicolon first )
System variables → new →classpath: Fill in .; %java_home%\lib;%java_home%\lib\tools.jar(Note that there is a point in the front)
4, check whether the installation is successful
In the DOS command window, type the following command:
Java-version
Ii. installation of Tomcat
1. Decompression version
Unzip the package directly to the target path (for example: D:\JavaTool\apache-tomcat-8.0.21-windows-x64\apache-tomcat-8.0.21),
You can start Tomcat by double-clicking the startup.bat file in the bin directory
Enter http://localhost:8080/in the browser, if the Welcome page appears, the installation is successful.
2. Installation version
Run the installation package to select the destination path.
Third, Eclipse installation
1. Download the Eclipse package
2. Extract to target path (e.g. D:\JavaTool\eclipse-jee-luna-SR1-win32-x86_64)
Iv. installation of the Tomcat plugin in eclipse
1, download the plugin. Address: http://www.eclipsetotale.com/tomcatPlugin.html
2, unzip the download package, put it into Eclipse's plugins directory to restart Eclipse, the Tomcat plugin was successfully installed!
3. Configuration:
Eclipse-toolsbar, Windows---prefences, Tomcat, pointing to the directory just Tomcat unzipped,
With the configuration complete, Tomcat can be started and turned off using the Tomcat plugin.
V. MAVEN installation
1, download. Address: http://maven.apache.org/docs/3.0.3/release-notes.html
2. Unzip the package to the specified location (e.g. D:\JavaTool\apache-maven-3.3.1-bin\apache-maven-3.3.1)
3. Configure Environment variables:
System variables → new →m2_home: Fill in the MAVEN installation path (e.g. D:\JavaTool\apache-maven-3.3.1-bin\apache-maven-3.3.1)
System Variable →path→ edit: Add%m2_home%\bin at the tail of the variable value ; (Note If there is no semicolon at the end of the variable value, enter the semicolon first)
4. Configure Warehouse Location
Warehouses are used to store all the jar packages that our project relies on.
Open the Setting.xml file in the \conf\ directory in the installation directory and set the warehouse path. The path can be created arbitrarily.
< localrepository > D:/javatool/maven-repository</localrepository>
5, check whether the installation is successful
In the DOS command window, type the following command:
Mvn-v
"Original" Java Development environment construction