I was trying to setup Apache Tomcat as a server on Eclipse and here is what I did.
Installed Tomcat through homebrew:
brew install tomcat.
To view the directory of the brew package:
brew ls tomcat
Specify the path in Tomcat installation directory on eclipse:
(Note: When I tried
/usr/local/Cellar/tomcat/9.0.29/eclipse kept telling me
Unknown version of Tomcat was specified.)
Shoutout to this stackoverflow question whose answers helped me today!