Second:eclipse Configuring Tomcat

Source: Internet
Author: User

Need to see " Install configuration JDK and deploy Tomcat separately" See here: http://www.cnblogs.com/douz/p/8761315.html

(i) Preparation

Baidu Cloud Address (win,64Bit):

1.eclipse Download: Link:https://pan.baidu.com/s/1pNSH3H66LSgI7b_mITj4Lw Password:5v4g

2.tomcat(7.0): Link:https://pan.baidu.com/s/1f60DOGO5Hnj9bq-987FNrw Password: 6q55

3.JDK (8.0): Link:https://pan.baidu.com/s/15wLeH1g7IMyayNP-AY6QQA Password:auo9

* do not need to download too high version because there may be a problem that can not be run, if you need another version, please use the following link to enter the official website download version (download note to distinguish between Win or Linux Operating system, level or level)

Links to related websites:

Eclipse Website:https://www.eclipse.org/downloads/

Tomcat official website:http://tomcat.apache.org/

JDK website:http://www.oracle.com/technetwork/java/javase/downloads/index.html

(ii) determine that the environment is installed successfully and start configuring eclipse ....

1. Open the eclipse.exe file directly.

2. If you need to view the version, you can go directly to Help->about to view it . My version is free to download the Web plugin separately.

3. set the default Jdk version.

because the JDK is already installed , there is no need to modify it here, but if you have multiple versions , you can do the JDK via the Ad button Add, and then tick " default is OK "(the method below).

A. Select the VMandclick Next.

B. find the appropriate installation JDK directory to select it.

C. when added successfully, it will be returned to the Preferences page and checked by default.

4. Configure Tomcat:

Just do not close the pop-up window, we continue with the next configuration.

Find the one you installed yourself Tomcat version

Select according to the cutting head point, The name name does not have to be modified because I am the third of the day so there is a (3) flag, select the Tomcat installation directory and then determine ->ok , added successfully and returned to the Preferences interface for confirmation.

5. start Tomcat

A. Enter the Window bar Servers in the console display, if there is no Servers Please click on the red box mark other.

B. and then it shows up on the console,

6. Create a Web Project If you do not have the Dynamic Web projects option to enter the red box that is indicated in the other and find if No other, then you need to install a web plugin (described below).

A. there is no Dynamic Web Project, one is the official website to download the plug-in installation, one is the software for software installation.

B. follow your own version through the dropdown to find and then choose to install (here do not do a separate explanation, will not please Baidu)

the project name needs to be entered, others can be changed without modification, directly Next, there will be a page with only a "src" file, the page does not have to be modified directly to continue Next.

I need to change the directory name here, I've already marked it.

then click Finishto create the success (I will no longer be created, before there is a demo1 file to show)

7. deploy the project to Tomcat

A. Click on the connection in the previous console,Servers , to enter the configuration page (if the Tomcat version does not need to be modified, please direct Next ).

B. find your new project and Addit. Then Finish is ready.

after adding success, your console becomes this way (my Tomcat has been started, so you need to start it yourself, that is, the button labeled Red box):

8. experiment time, create a new index.jsp file, and then write a word in the file

9. visit your browser, congratulations on your deployment success, if you have not modified the toomcat port configuration file, then your Access path is http://localhost:8080/demo1. I changed the 8080 port to a port, so I don't need to go to the port number.

This tutorial ends.

Summary of issues:

1. Encounter This problem: there is a running Tomcat that does not shut down properly, causing the port to be occupied. The rough Way is in " Task Manager JAVA process stop ", the tactful point is to go to Tomcat the installation directory of the Config Change the port number configuration in the file (do not own Baidu)

2. This question: I am not sure about the specific reasons, I suspect that multiple deployments have led to the use of such problems, but there are solutions.

Locate your Eclipse file path and go to ... core in this folder, you will see a few tmp files, decisively deleted, and then reopened Eclipse will start again.

If you observe, you will find that the success of this launch,... the core folder generates a tmp file (like this).

Reference Path: E:\ tool \eclipse\demo1\.metadata\.plugins\org.eclipse.wst.server.core(you and I are of course different)

<--Personal Original | For Beginners | Reprint please specify "tease" and original link--

Second:eclipse Configuring Tomcat

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.