Discussion:
Zenoss Install error - Oracle java not found
Mike Bailey
2012-11-21 11:59:52 UTC
Permalink
Mike Bailey [http://community.zenoss.org/people/mikeb74] created the discussion

"Zenoss Install error - Oracle java not found"

To view the discussion, visit: http://community.zenoss.org/message/70035#70035

--------------------------------------------------------------
Hi

I've just completed a fresh install of Zenoss Core 4.2 on a fresh install of CentOS6.3.

However, the install will not initialise and I get this:

=
Install       1 Package(s)

Total size: 311 M
Installed size: 311 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : zenoss-4.2.0-1586.el6.x86_64                                                                                                 1
WARNING: Oracle JRE was not detected in the search path. Zenoss may not work properly.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
  Verifying  : zenoss-4.2.0-1586.el6.x86_64                                                                                                 1

Installed:
  zenoss.x86_64 0:4.2.0-1586.el6

Complete!
Configuring and Starting some Base Services
Starting memcached:
Starting snmpd:
Zenoss not initialized.  Performing first-boot initialization...
Fresh install pre steps
Please confirm that the JRE in the PATH is Oracle's version.

When I enter:

java -version I get this:
-bash: Java Command not found.

However, by entering export PATH=$PATH:/usr/java/jre1.6.0_31/bin/ it allows me to view the java version

Then I entered

java -version which then got me:
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

But Zenoss still wont start. as a bit of linux newb, I'm kind of struggling here

Any help is greatly appreciated

Cheers


Mike
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70035#70035]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
nilie
2012-11-21 18:55:25 UTC
Permalink
nilie [http://community.zenoss.org/people/nilie] created the discussion

"Re: Zenoss Install error - Oracle java not found"

To view the discussion, visit: http://community.zenoss.org/message/70067#70067

--------------------------------------------------------------
Hi Mike,

The installation procedure for Oracle Java JRE as given in the official Zenoss core installation manual is not very clear (especially for beginners) so I'll post here how I did it on my servers (you must be root or you're looking for trouble here) :

*#Make sure you're in the home directory, download and extract Oracle JRE*
cd ~
wget -O jre-6u33-linux-x64-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=65509 http://javadl.sun.com/webapps/download/AutoDL?BundleId=65509
chmod -v +x jre-6u33-linux-x64-rpm.bin
sh ./jre-6u33-linux-x64-rpm.bin
*#Now put it to the right place and tell the system to use it*
mkdir -pv /usr/java
mv -v jre1.6.0_33 /usr/java
alternatives --config java   *#make note of the highest sequence number here in case you have other Java package because they can coexist safely*
alternatives --install /usr/bin/java java /usr/java/jre1.6.0_33/bin/java 1   *#use next available sequence number to designate the preferred Java, in my case it is 1 which means Oracle JRE is the only one*
alternatives --config java     *#optional, just to make sure Oracle JRE is the preferred one*
java -version
cd /usr/java
ln -sv /usr/java/jre1.6.0_33 default
*#Modify /etc/profile to include the following line*
export JAVA_HOME=/usr/java/default

Of course, you must adapt this to your needs.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70067#70067]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...