Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Because a project needs, so I need to run the jsp server project, I am white in this area, recorded at the time of the solution.
- Install Tomcat. Official website to download .
- 点击window->Preference->server->Runtime Environment。
- Click add, select your version of Tomcat, then next. It may end up being given no say when clicked Finish xxx that directory to the directory administrator rights into one get another one on ok (This is a giant pit, QAQ)。
- If your window-> show view under this option if no server. To manually change the C: \ Program Files \ Apache Software Foundation \ Tomcat 8.5 \ server.xml configuration files conf. The server port change it, or else when running Java code or invalid port will complain of what to say.
- If your window-> server have this option, then the next show view, you can tune out directly to Server window, then right a new Server. The rest is simple.
- Turn off the Tomcat, then start the server in eclipse (if no server window directly Java code run on server right now).