CQ5 requires at least java 5. And on Linux only Sun/Oracle JVM (or IBM JDK together with IBM WAS) are supported. So you are working on a unsupported platform.
As per your suggestion i downloaded Oracle java from URL http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-jav ase5-419410.html
Java Development Kit 5.0 Update 22 45.71 MB jdk-1_5_0_22-linux-i586-rpm.bin
After rebooting the server i ran the command
Getting same as java version "1.4.2"
Is iam downloading the correct Bin file.
My OS: Red hat EL 5.7
I would recommend you to install java 1.6.x version which is most supported by CQ5, for more information on JVM supported by CQ5 refer below URL: http://dev.day.com/docs/en/cq/current/deploying/technical_requirements.html#Java Virtual Machines
Obviously you have at least 2 versions of java installed.
/usr/sbin/alternatives --config java
and switch to the java 1.6 version you have just installed.
I can able to see only java 1.4.2 option in /usr/sbin/alternatives location.
Deleted all java packages using rpm command .
Plamning for a fresh java installation. Is this a right approach?
I see 2 choices:
- either you install a JDK in a RPM format, which supports the /usr/sbin/alternatives approach (which is the standard way for Redhat Linux)
- Or you manually patch the start script of CQ5 to actually use the java binary you installed manually. That's not a hard thing, just replace the "java $CQ_JVM_OPTS ..." with the "/path/to/your/java $CQ_JVM_OPTS ...". You will find that line at the very bottom of the start script in crx-quickstart/bin/start.
I would recommend you to go for the first approach.