Eclipse Java EE IDE add tomcat server
1. First of all, download the tool and click the link below to download
1) Tomcat v7.0
2) Eclipse IDE for Java EE developers
3) Java SE development Kit
After downloading the installation, the installation here will omit 10,000 words Ah!
2. Add the Tomcat server to open your installed eclipse
1) Select Menu Window--- preferences-->server-->runtime environgments-->add The following interface appears
Here you can choose the Tomcat version, because I'm under version 7.0, so select Apache Tomcat v7.0 then finish.
2) Configure the Tomcat runtime environment. If you do not see the following interface, you can click on the above add below the edit ...
Configuration:
Tomcat Path: D:\apache-tomcat-7.0.34 (the path of my Tomcat decompression)
JRE: Select one, no default JRE selected
3) Open the View servers create the server. Menu Window-->show View-->server-->servers
Click New Server Wizard ... will appear
You can see the information you just configured here, even if your tomcat was added to eclipse, and then finish
3. test. In your Web project right-click Run as--and run on Server below is the eclipse built-in browser to open one of my test projects
OK Configuration Succeeded
But there's a new problem.
question: At this point, if you enter the http://localhost:8080/return page in the Eclipse built-in browser or the external browser address bar will appear 404, but enter the above address is can visit
Ask the success of the Oh! even if the configuration succeeds, there should be a tomcat kitten appearing.
4. New Problem Solving methods
1) Locate the Server Action window and double-click the Tomcat service below.
2) in the open settings, select the server locations option as the second red label and then save if this option is grayed out, you cannot
Please remove server re-add and try again
3) Test Again
At this point we can see the kitten, and the external browser can also see the kitten squint.
This is finally the configuration success! Then you can enter your Web development journey!!
Eclipse adds a tomcat server and resolves 404 issues