Ops Center 12c - cronjob error "JAVA_HOME does not contain java."
I have installed ops center 12c and the installation went fine. However, now I'm getting this error.
---- snip
Your "cron" job on server0 /var/opt/sun/xvm/ocm/ccr/bin/emCCR -cron -silent start
produced the following output:
JAVA_HOME does not contain java.
JAVA_HOME is not a valid JDK/JRE directory.
Redefine JAVA_HOME to refer to a JDK/JRE 1.2.2 or greater and invoke
/var/opt/sun/xvm/ocm
----- snip
There is no variable set for JAVA_HOME for the root user since the java binary is in the path
root@server0# which java
/usr/bin/java
3