Install Eclipse (Tomcat configuration maven build) {Java Basics development tool}

Source: Internet
Author: User
Tags tomcat server

Install Eclipse

1. Download eclipse-jee-neon-3-win32-x86_64 zip

Baidu Cloud Disk Unzip

2. Download JDK

Website

JDK 8

environment variable configuration on JDK computer

3. Apache-tomcat Bag Tomcat Installation and configuration

Tomcat is one of the core projects of the Apache Software Foundation (Apache Software Foundation) and supports the latest servlet and JSP specifications. Tomcat is a popular Web application server because of its advanced technology, stable performance and free.

The Tomcat server is a free open source Web application server and belongs to the lightweight application server which is the first choice for developing and debugging JSP programs

Tomcat Installation 1. Download Tomcat to Computer

Download : Apache-tomcat Baidu Network disk Xmind

2. Copy the Tomcat files to the user directory:

3. Releasing the Tomcat compression pack

Configuring the Tomcat server in Eclipse 4.5 Mars21. Locate the Tomcat server installation location and remember the installation directory for Tomcat:

2. Open Eclipse to find preference settings:

3. Locate the server configuration item:

4. Choose to add the Tomcat 7 project, you need to select To Create a new server instance Project :

5. Select the installation directory for the Tomcat server (refer to step 1):

6. Confirm the configuration results:

7. Return to the server view in eclipse to configure the Tomcat deployment directory:

Deployment Directory

The deployment directory is Web application Publishing directory, set this directory can be convenient for Web application debugging.

if the item is grayed out and cannot be changed , you can delete the Tomcat 7.0 Server project and add it again.

8. Start the tomcat server in the Eclipse Server view:

9. Review the results of the launch in the Eclipse console view:

10. Use the browser to access Tomcat's service port to check if the Tomcat boot was successful:

One . Good luck!

4. apache-maven-3.5.2

Baidu Network Disk apache-maven-3.5.2

1. Before installing Maven, it is required to make sure that your JDK is installed and configured to complete. JDK is better than 1.6, MAVEN is a project under Apache, I use 3.3.9.

: http://maven.apache.org/download.html

2, unzip the downloaded MAVEN package to D:\maven

3. Configure MAVEN Environment variables

System variable: maven_home = D:\maven\apache-maven-3.3.9

User variable: path =%maven_home%\bin

(This goes to the computer system to find, I found some pictures on the internet to now do not know where to go)

4, click OK, open cmd window: Enter Mvn-version, the following content indicates the installation is successful

If you can print the information as above, explain to this The MAVEN3 is already installed on your computer.

5, then change the location of the MAVEN repository: Find the settings.xml configuration file under Maven Conf, mine is in D:\maven\apache-maven-\conf

</profiles>

<localRepository>D:\mavenjar</localRepository>

Write on

<localRepository>D:\maven\Repository\repository</localRepository> represents the path to be downloaded,

after the end, knock in cmd and enter to execute: mvn help:system, download something

6, configuring Maven in MyEclipse

Turn on Myeclipse,window-Preferences--and MyEclipse--maven4myeclipse-up Maven

Determine The JDK is with your own

Choose your own maven and click Add to find your maven-stored folder

Choose Your own settings.xml.

The myeclipse itself is already integrated with the Maven plugin, and we simply configure it so that Maven installs it in MyEclipse.

7, let's start by creating a Maven project, File-new-other.

Click Next

Click Next, for the first time,catalog, select all catalogs, will download the plugin, I have already downloaded to find the Red line section selected to

Continue to the next

Then click End, and then locate the Pom.xml file in the project, open

in this area you can add a dependency on the package,Pom file How to add dependencies, you can search in http://search.maven.org

This is the end of MAVEN's configuration under MyEclipse

Install Eclipse (Tomcat configuration maven build) {Java Basics development tool}

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.