I am trying to install Tomcat to use Solr on my server running Centos 5.8 but am running into problems with the Java component - I have installed Java and confirmed it is installed:
java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10.10) (rhel-188.8.131.52.10.el5_8-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
I have then unpacked Tomcat etc and set it up as a service but when I start the service I get an error in logs/catalina.out:
/usr/share/apache-tomcat-7.0.32-src/bin/catalina.sh: line 389: /usr/lib/jvm/jre-1.6.0.openjdk.x86_64/bin/java: No such file or directory
In /etc/init.d/tomcat I have a line which points to the JAVA_HOME which is set to:
When I look at that directory there is a folder called bin and then a file called java with in it so it all looks OK but when I try to start the service I get the errors shown the log file above - can anyone help to resolve this?