For this example i am going to use Tomcat 8 & Eclipse Mars in Windows 10 OS.
Download Tomcat 8 binaries – “apache-tomcat-8.0.32-windows-x64.zip” from Tomcat 8 website. to your local windows machine. Unzip / extract it into some location. For example I extracted it under “C:\Projects”. Now the directory “C:\Projects\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32” contains all the sub directories like bin, conf, lib etc.
Download eclipse-jee-mars-1-win32-x86_64 (Or any latest version of eclipse jee) and extract it.
Tomcat 8 needs java 7 or higher. Please make sure you have Java 7 or higher in the PATH.
Else add it as below. You can either add it at the system level or create a file called eclipse.bat and add as below.
Then double click the eclipse.bat file to open eclipse.
Open eclipse. In the top menu, Click File->New->Other. A small panel will open. In it, select Server. Click “Next >”.
In the next panel, Expand “Apache” and then select “Tomcat v8.0 Server”. Click “Next >”.
In the next panel, provide “Tomcat installation directory:”. It will be the path to the directory which contains the “bin” directory. For example: “C:\Projects\apache-tomcat-8.0.32-windows-x64\apache-tomcat-8.0.32”. Click “Next >”. Then “Finish”.
Once you click Finish, the server gets displayed in the “Project Explorer” as shown below.