Many children are blind when they first use Eclipse for Web development. Used to be a text editor to write, do a good job of directory structure, to tomcat next throw, restart, fix.
Now with Eclipse, instead of adapting.
This article will bring you together to configure the Tomcat server under Eclipse.
First step: Open Eclipse, click Window, point to Show view, and on the Expand menu, click Server.
Step Two: at this point, we suddenly found that in the View menu, more than a "server" view, asked you magic is not magical!!!
-click the "New Server Wizard" link in the View window.
Step Three: open the "Apache" drop-down menu in the pop-up window and select the same version of Tomcat that you have previously downloaded. "Server hostname" and "Server name" below
are customizable and remain the default here. Click Next when you're ready.
Fourth Step: Click Browse in the pop-up window to find the root location of the Tomcat server. Note is the root directory, root directory, root directory! The JRE can be selected according to its own situation. Due to the high version of the author JRE,
To avoid a build environment version that is higher than the running environment version of this report, use the default JRE that comes with eclipse.
When you have finished setting up, click Finish.
End: Here we can see that the Tomcat server we just configured has appeared in the server view. The server project is also available in the Project Explorer.
Configuring the Tomcat server for Eclipse EE (Chinese version)