subtle
May 18th, 2007, 02:54 PM
Hello,
I am a linux noob and trying to set up Ubuntu with Java and Tomcat so I can have a go a programming servlets.
I have installed java using
sudo apt-get install sun-java6-bin
I also set JAVA_HOME to set $JAVA_HOME = /usr/lib/jvm/java-6-sun/
I have downloaded tomcat version apache-tomcat-5.5.23.tar.gz
I unpacked the tarball, renamed it tomcat and moved to /usr/local/
I then ran gedit ~/.bashrc and added the following
export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export CLASSPATH="/usr/local/tomcat/common/lib/jsp-api.jar;/usr/local/tomcat/common/lib/servlet-api.jar"
I then ran sh /usr/local/tomcat/bin/startup.sh
and get the following
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun/
if I open firefox and go to http://localhost/ i get Firefox can't establish a connection to the server at localhost.
I have also set server.xml to port 80.
Has anybody got any ideas?
I am a linux noob and trying to set up Ubuntu with Java and Tomcat so I can have a go a programming servlets.
I have installed java using
sudo apt-get install sun-java6-bin
I also set JAVA_HOME to set $JAVA_HOME = /usr/lib/jvm/java-6-sun/
I have downloaded tomcat version apache-tomcat-5.5.23.tar.gz
I unpacked the tarball, renamed it tomcat and moved to /usr/local/
I then ran gedit ~/.bashrc and added the following
export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export CLASSPATH="/usr/local/tomcat/common/lib/jsp-api.jar;/usr/local/tomcat/common/lib/servlet-api.jar"
I then ran sh /usr/local/tomcat/bin/startup.sh
and get the following
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun/
if I open firefox and go to http://localhost/ i get Firefox can't establish a connection to the server at localhost.
I have also set server.xml to port 80.
Has anybody got any ideas?