In this how-to we are presenting the steps you have to follow in order to install Tomcat 7 and Solr on a Centos 5.5 machine.
Install Java JDK
yum install java-(version)-openjdk yum install java-(version)-openjdk-devel
where (version)
must be a valid version of the JDK.