Web Development Blog

24K Design Studio :: Blog :: Install OpenJDK / Tomcat 6 on CentOS 5.5
Author:
Password:
Install OpenJDK / Tomcat 6 on CentOS 5.5
12:14, 16 Dec, 2010
by James

Using yum to install openjdk, simple and fast.

yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel

java -version

nano /etc/profile

#Add the following lines at the bottom:
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export PATH JAVA_HOME CLASSPATH

Add the below after install Tomcat6.

TOMCAT_HOME=/usr/share/tomcat6
export PATH JAVA_HOME CLASSPATH TOMCAT_HOME

 

To install Oracle JRE refer to http://wiki.centos.org/HowTos/JavaOnCentOS

 

Install Tomcat:

cd /etc/yum.repos.d
wget 'http://www.jpackage.org/jpackage50.repo'
yum update
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
service tomcat6 start


if encoutner dependency error, try:

rpm -i http://candrews.integralblue.com/wp-content/uploads/2009/07/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm

then install again.

Reply:
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
Anonymous
01:33, 19 Dec, 2010
 
thanks!
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
dhyfjpau
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#2
Pipo
18:14, 08 Dec, 2011
 
Thanks
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
ojxipinh
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#3
theBra!n
00:37, 09 Jun, 2012
 
Great post, thank you!
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
cbxnsmnd
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#4
Anonymous
04:52, 27 Sep, 2013
 
worked for me - nothing else was working. Thanks!
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
View the latest 5 entries.