Use Eclipse+tomcat to build your local environment

Source: Internet
Author: User
Tags apache tomcat

There are many project development tools, here is a brief introduction of how to build the local environment using ECLIPSE+TOMCAT.

The installation development tools are as follows:

1. Installation reference for JDK

: Http://pan.baidu.com/s/1sj9rVYX

Installation Reference Address: http://www.cnblogs.com/pxue/archive/2011/05/10/2042530.html If Javac is not running in cmd, try to%java_home% the path in the environment variable Path set to absolute path

Key points: (set three environment variables)

Java_home D:\Program files\java\jdk1.7.0_25

PATH%java_home%\bin;%java_home%\jre\bin

CLASSPATH.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar

2.tomcat Installation Reference

: HTTP://PAN.BAIDU.COM/S/1HQ8O0HM

Installation Address reference: Http://www.cnblogs.com/pannysp/archive/2012/03/07/2383364.html (refer to the Tomcat installation section)

Key points: Setting environment variables

Tomcat_home D:\Program files\java\apache-tomcat-7.0.55

CLASSPATH;%tomcat_home%\bin (new)

3. Configure Eclipse

Eclipse:http://pan.baidu.com/s/1ddjxyb3

Associated ECIPSEPE development environment and Tomcat Services reference: http://www.360doc.com/content/12/0323/11/9266792_196907199.shtml

Key points:

Click "preferences=" server= "Runtime environments =" In the Eclipse toolbar and click the Add button on the left, select Apache Tomcat v7.0, select the Tomcat installation path, and then OK.

4. Import Project

4.1 Install VPN, and login VPN, connection is successful. Otherwise, there will be no permission to manipulate the code.

4.2 Adding a private key in Gitlab

Eclipse generates Sshkey, "window"-"preference-" General "-" Network Connections "-" SSH2 "-" Key managements "tab, generate Sshkey

The browser accesses the Gitlab address and adds the Sshkey.

4.3 Importing a git project

In the Eclipse window, select "File" = "import" = "git" = "git url address, download the GIT project file."

5. Installing Maven management Tools

5.1 Maven:http://pan.baidu.com/s/1g8fxo

Installation procedure reference: Http://jingyan.baidu.com/album/295430f136e8e00c7e0050b9.html?picindex=1

Http://www.bkjia.com/article/26193.html

Key points:

MAVEN Add environment variable

Maven_home D:\Program files\java\apache-maven-3.0.5

PATH;%maven_home%\bin; (added in the back)

After configuration, enter Mvn–v test in CMD and have configuration information stating that MAVEN installation was successful.

5.2 Eclipse sync maven settings

View "Window"-"Preferences"-"Maven" in Eclipse

If there is a MAVEN option, if not, download the Maven plugin in eclipse.

If this option is already available, configure the file under Maven-user settings.

6. Configure Project Engineering, update MAVEN dependencies, and create a new server startup.

7. Other

7.1 Configuring Nginx

7.2 Setting up Host

Use Eclipse+tomcat to build your local environment

Related Article

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.