Tuesday, May 30, 2006

Installing and Configuring Java+Tomcat..

Now that Apache2+PHP+MySQL is working fine up to me, its time to install and configure Java+Tomcat.

Installing and configuring Java:

http://java.sun.com/j2se/1.5.0/install-linux.html was really useful in this account.

From http://java.sun.com/j2se/1.5.0/download.jsp downloaded "jdk-1_5_0_07-linux-i586.bin"

To set permissions,

# chmod +x jdk-1_5_0_-linux-i586.bin

Copied jdk-1_5_0_07-linux-i586.bin to / directory.

# ./jdk-1_5_0_-linux-i586.bin (Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with "./")

Folder "jdk1.5.0_07" was created under / directory.

To Set Java environment variables:

# export JAVA_HOME=/jdk1.5.0_07/

# export PATH=$PATH:$JAVA_HOME/bin

Installation and Configuration of Tomcat:

From "http://tomcat.apache.org/download-55.cgi" downloaded apache-tomcat-5.5.17.tar.gz

# tar xvfz apache-tomcat-5.5.17.tar.gz

Copy the folder "apache-tomcat-5.5.17" to /usr/local

Open,

# gedit ~/.bashrc and add the following to the file,

#Stuff we added to make tomcat go
export JAVA_HOME=/jdk1.5.0_07/
export CLASSPATH=/usr/local/apache-tomcat-5.5.17/common/lib/jsp-api.jar:/usr/local/apache-tomcat-5.5.17/common/lib/servlet-api.jar


To start Tomcat,

# sh /usr/local/apache-tomcat-5.5.17/bin/startup.sh

and following has to appear

Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17
Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp
Using JRE_HOME: /jdk1.5.0_07/

Now,

8080 is the default port and so,

http://127.0.0.1:8080/ should open the "Apache Software Foundation" properly from Mozilla.

To b contd...

2 Comments:

Anonymous Anonymous said...

Nice colors. Keep up the good work. thnx!
»

8:05 PM  
Anonymous Anonymous said...

Greets to the webmaster of this wonderful site! Keep up the good work. Thanks.
»

5:30 AM  

Post a Comment

<< Home