Eclipse: Tomcat integration
1. Download and install tomcat
You can either install tomcat or use portable versions from http://tomcat.apache.org/.2. Create tomcat runtime environment
Open eclipse (we use eclipse java EE) and go to: Window -> Preferences -> Server -> Runtime Environments then click "Add".
Select tomcat version to fit with your installed tomcat (for example with tomcat 8.0.41 we select "Apache Tomcat v8.0") then click "Next".
Browse to your tomcat installed folder (or portable version folder).
Click "Finish".
3. Set runtime environment for project
This step is not for project runing but for fix some problems like "The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path".Right click on your project and select Properties -> Targeted Runtimes then select tomcat runtime that we created above.
Click "Ok".
4. Create server and add project to run
Go to Window -> Show View -> Servers to open server tab.
Click link to create new server. Select runtime environment created above and click "Next".
Add your project to server and click "Finish".
Right click on server and select "Start" to run.
View runing project on browser.
