Feb 9, 2012 10:32 PM
WARNING: Oracle JRE was not detected in the search path.
-
Like (0)
Hello fellow Zenoss users,
I am new to Zenoss and I am trying to run Zenoss on Centos 5.
When I try to install the Zenoss rpm file I get below error message
"WARNING: Oracle JRE was not detected in the search path. Zenoss may not work properly."
I have installed several java versions (also for other applications that are already running on the server).
Those use the openjdk's java version that came with the OS vendor.
Can I set an environment variable for Zenoss that it picks Oracles jre environment and leave the other applications alone ?
I was trying to set the CLASSPATH or adding the folder to the PATH variable but somehow that didnt work as expected.
Thanks for any hints.
Here is what I see:
# java -version outputs version info to stderr
JRE_FLAVOR=`java -version 2>&1 | grep 'HotSpot(TM)'`
if [ -z "$JRE_FLAVOR" ]; then
MSG="WARNING: Oracle JRE was not detected in the search path. Zenoss may not work properly."
echo $MSG 2>&1
fi
So it appears you need to have the "default" java pointed at something that returns "HotSpot(TM)", however you want to go about that.
if you currently type 'java -version' what output do you get?
Thank you for the reply. Currently I get below results.
[root@tokyo ~]# java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.42.1.10.4.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
[root@tokyo ~]# rpm -qa|grep jdk
java-1.6.0-openjdk-devel-1.6.0.0-1.42.1.10.4.el6_2.x86_64
java-1.6.0-openjdk-1.6.0.0-1.42.1.10.4.el6_2.x86_64
[root@tokyo ~]# rpm -qa|grep jre
jre-1.7.0_01-fcs.x86_64
I'm not sure of the "safest" aproach to support your other applications, but perhaps you could alias java for the purpose of the install, however I'm not sure if that default is hard coded other places or the path is derived at installation time.
In general using the alternatives command seems like a good idea.
But in this case I didnt want to touch the original environment and only set a different java version for Zenoss.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||