Here are a few steps which will let you install Tomcat in Ubuntu.
How To Intall Tomcat In Ubuntu
Simply goto the terminal ( Applications -> Accessories -> Terminal ) and enter:
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
After successfully installing Tomcat from the above command line, open up your browser, and put the default address as:
If it is successfully installed in your system, then you will be able to see a page saying It Works !
Now you can have your own directory in the following path, like create a new folder as test in the following path:
and write a simple JSP application say testing.jsp, in the test folder.
How To Access Tomcat Server In Browser
To access your folder or file in your Tomcat folder, you simply have to right:
If you are unable to see the results above, try restarting your Tomcat Server, by using the following start, stop or restart command.
Start, Stop & Restart Tomcat
To start your Tomcat server, use the following command in the Terminal:
sudo /etc/init.d/tomcat6 start
To stop your Tomcat server, use the following command in the Terminal:
sudo /etc/init.d/tomcat6 stop
To restart your Tomcat server use the following command in the Terminal:
sudo /etc/init.d/tomcat6 restart