I am using UBUNTU and I want to install tomcat to run servlet programs.

View Answers

November 14, 2011 at 11:20 AM

Before starting you need the Java Development Kit (JDK) and not Java Runtime Environment (JRE). Download it from as a .bin file and install it on your system or use the command:

sudo apt-get install sun-java5-jdk

Then set the Java Runtime variable

$ export JAVA_HOME=?Your java path?
$ export PATH=$PATH:$JAVA_HOME /bin

e.g. on Dapper

$ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-

Now use the following command to install Tomcat

$ sudo aptitude install tomcat5 tomcat5-admin tomcat5-webapps

To Start, Stop and Restart the server

$ sudo /etc/init.d/tomcat5 start
$ sudo /etc/init.d/tomcat5 stop
$ sudo /etc/init.d/tomcat5 restart

You can access the root directory via port 8180 and the server listens to the address So type in your web browser to access the server.


Related Tutorials/Questions & Answers:
TOMCAT  how can we deploy the project in Apache Tomcat
Tomcat  to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient
Tomcat  I am using UBUNTU and I want to install tomcat to run servlet programs
tomcat  Is it necessary to restart the server if we change the JDK path in tomcat server?   Yes, Thanks   Yes, Thanks
Tomcat  send me one simple project application how can we deploy the project in tomcat where we can store the html and Jsp ad Java, XML files in the tomcat web apps folder. the following structure is correct or not Tomcat-web
the following links:
type in the url path of the tomcat to see the output
Tomcat  When i want to run the servlet program in tomcat i got the following errors type Status report message Servlet InsertServlet is not available description The requested resource (Servlet InsertServlet is not available
Tomcat  i have a problem in starting tomcat server.. May 12, 2011 12... resolving reference D:\Workspace\conf\tomcat... Global JNDI Resources javax.naming.NamingException: D:\Workspace\conf\tomcat
TOMCAT  When i am deploy the servlet class file in tomcat server i get the following errors pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request
Version of tomcat>tomcat dependency
List of Version of tomcat>tomcat dependency
Version of tomcat>tomcat_core dependency
List of Version of tomcat>tomcat_core dependency
Version of tomcat>tomcat-http dependency
List of Version of tomcat>tomcat-http dependency
Version of tomcat>tomcat-jk dependency
List of Version of tomcat>tomcat-jk dependency
Version of tomcat>tomcat-juli dependency
List of Version of tomcat>tomcat-juli dependency
Version of tomcat>tomcat-parent dependency
List of Version of tomcat>tomcat-parent dependency
Version of tomcat>stop-tomcat dependency
List of Version of tomcat>stop-tomcat dependency
Version of tomcat>tomcat-ajp dependency
List of Version of tomcat>tomcat-ajp dependency
Version of tomcat>tomcat-ant dependency
List of Version of tomcat>tomcat-ant dependency
Version of tomcat>tomcat-apr dependency
List of Version of tomcat>tomcat-apr dependency
Version of tomcat>tomcat-coyote dependency
List of Version of tomcat>tomcat-coyote dependency
Version of tomcat>tomcat-jni dependency
List of Version of tomcat>tomcat-jni dependency
Version of tomcat>tomcat_modules dependency
List of Version of tomcat>tomcat_modules dependency
Version of tomcat>tomcat-naming dependency
List of Version of tomcat>tomcat-naming dependency
Version of tomcat>tomcat-util dependency
List of Version of tomcat>tomcat-util dependency
Version of tomcat>tomcat-warp dependency
List of Version of tomcat>tomcat-warp dependency
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
tomcat problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver
Tomcat 6.0
Tomcat 6.0  Hi,this is harish i got an issue while running my project.I hope something wrong with my tomcat server .. ERROR:An internal error occurred during: "Publishing to Tomcat v6.0 Server at localhost
Artifacts of tomcat
List of Artifacts of tomcat maven depenency
Tomcat Error:
Tomcat Error:   Hi, I am not able to start the tomcat server. If I try to start it then I am getting the below error. "coyote connector has not been started" Could some body please help me to solve the problem??? Thanks a ton