Eclipse4.6 (Neon) + Tomcat8 + MAVEN3.3.9 Project Complete Environment construction

Source: Internet
Author: User
Tags svn

Software Inventory
    • Jdk-8u102-windows-x64.exe

    • Eclipse-inst-win64.exe (Eclipse4.6 Neon)

    • Apache-tomcat-8.5.5-windows-x64.zip

    • Apache-maven-3.3.9-bin.zip

Installation of 1.JDK

The installation process is next to the end;
To configure environment variables after the installation is complete:

1.1 新建变量名:JAVA_HOME       变量值:C:\Program Files\Java\jdk1.8.0_102(这是我的jdk安装路径)1.2 编辑变量名:Path      变量值:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin1.3 新建变量名:CLASSPATH     变量值: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar(注意:CLASSPATH变量值前面有个"."  、 在设置变量的末尾时不要加上“;”)

Test whether the installation is successful after Setup is complete; console input command: java-version, Javac
Printing a version number or a command prompt indicates that the configuration was successful. Such as:

Installation of 2.Eclipse 4.6 (Neon)

Installation tips:

    • Request jdk1.8+

    • Online installation may require the use of VPNFQ

3.TOMCAT8 installation and environment variable configuration
    • Unzip the compressed file to a custom path (my path: D:\Program files\apache\apache-tomcat-8.5.5);
      (When you install Tomcat, there must be no spaces around its letters, or it may end up being unsuccessful)

    • Configuring environment Variables in system variables (case insensitive)

3.1 变量名:CATALINA_BASE    变量值:D:\Program Files\Apache\apache-tomcat-8.5.53.2 变量名:CATALINA_HOME    变量值:D:\Program Files\Apache\apache-tomcat-8.5.53.3 变量名:classpath    变量值:%CATALINA_HOME%\common\lib\servlet-api.jar;3.4 变量名:path    变量值:%CATALINA_HOME%\lib;
4.Eclipse Configuring Tomcat

4.1. Runtime environments, Server, Preferences, Window, Windows, ADD

4.2. Select a corresponding version; Create a new native service; next;

4.3. Select the Tomcat installation path, select the JRE version, and complete.

5.Maven installation Configuration 5.1 maven configuration environment variables

Unzip the Apache-maven-3.3.9-bin.zip to a path (mine is: D:\Program files\apache\apache-maven-3.3.9) and configure the environment variable:

新建变量名:MAVEN_HOME变量值:D:\Program Files\Apache\apache-maven-3.3.9编辑变量名:Path  在最前面加上:%MAVEN_HOME%\bin;(注意,最后要有个";"作为分隔符)

When you are finished, enter: mvn-version in the command line to see if there are any of the following, if any, to indicate a successful configuration.

Configuration of the 5.2 Maven data Warehouse

5.2.1. MAVEN also has an important configuration is the Data Warehouse path configuration, we find MAVEN installation path, enter conf--> open settings.xml, find localrepository tag, this is commented out;

5.2.2. We dismiss the comment and then customize a path, for example my: D:\Program Files\jee-neon\maven-server\mavenrepository\maven_jar, In this way, the jar packages that Maven manages to download will be under this path. Of course we need to build such a directory structure, and then we have to say settings.xml copy to D:\Program files\jee-neon\maven-server\mavenrepository, which is used when integrating with eclipse.

5.3 Integration with Maven in eclipse
    • In fact, this version has been integrated with the Maven plugin, (after MAVEN is configured) can create a new MAVEN project; we just need to customize our own path;

5.3.1. MAVEN configuration is complete, you can see back automatically select the version of your own configuration

5.3.2. Modifying the default Maven managed path;

6.SVN Installation

SVN is the code version manager, first install an SVN manager locally, then configure Eclipse's SVN plug-in, download the plugin to unzip, directly copied to the MyEclipse installation directory under Dropins. Create a project at any one, right-click the project-->team-->share, and open it if you see SVN on behalf of the plugin installed successfully.

7.JAVA Code Hints

Copy:abcdefghijklmnopqrstuvwxyz.
To the text box, "." The code hints are replaced with any letter plus "." Code hints when they appear

Reference:
MYECLIPSE+TOMCAT+MAVEN+SVN Project Complete Environment construction

Eclipse4.6 (Neon) + Tomcat8 + MAVEN3.3.9 Project Complete Environment construction

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.