In this tutorial, we will explain how to add tomcat server in netbeans. In this post, we are currently using NetBeans 8 and Apache Tomcat 8.0.5.
Start by download the binary distribution of tomcat 8 by visiting the official tomcat download website. You can visit the website using this link. Under Binary Distributions, in Core, download the 64 bit Windows zip format or 32 bit if you are using 32 bit of windows. Or you can just click the link below to download Tomcat 8.0.5:
After finishing downloading, extract the files to somewhere you want, in our case, we extract it at C:/
Next, browse to locate tomcat server eg. C:\apache-tomcat-8.0.5. Add a username and password for a manager role. This credentials will be used when logging in to your tomcat in browser. Click Finish.
To test your tomcat server, in Services tab, expand Servers section. Right click apache tomcat and click Start.
You can view the logs in the console tab. After successfully starting tomcat, in your web browser eg. Chrome, open up localhost:8080 which is the default port for tomcat. You should be able to see something like below. Done, you have successfully added tomcat in netbeans.