LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 01-11-2015, 10:52 PM   #1
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: Disabled
Error on installing the Oracle Java SE Runtime Environment 6u45


Hello guys. when i tried to install the re-6u45-linux-x64-rpm.bin i get this error:

[root@]# chmod +x ./jre-6u45-linux-x64-rpm.bin
[root@]# ./jre-6u45-linux-x64-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
replace jre-6u45-linux-amd64.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: jre-6u45-linux-amd64.rpm
./jre-6u45-linux-x64-rpm.bin: line 139: [: too many arguments

Done.
 
Old 01-12-2015, 02:08 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i take it you did not know that java was already installed

cent uses OpenJDK ( icedtea) and 1.7 is the current
the old 1.6 ( 6u45) is deprecated and should not be used

if you are going to REPLACE the system DEFAULT openjdk with Oracle's java
you need to do quite a few things

see the cent6.6 software repos
Code:
su -
yum search icedtea 
---- and also -----
yum search java
and the centOS wiki
-- very out of date -- use the CURRENT versions
http://wiki.centos.org/HowTos/JavaOn...ght=%28java%29

cent moved to the RedHat documentation
for the current RHEL7.0
https://access.redhat.com/documentat...erprise_Linux/

Last edited by John VV; 01-12-2015 at 02:11 AM.
 
Old 01-12-2015, 02:26 AM   #3
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thank you dear John VV.
im tiring to install zenoss 4.5.2 on centos 6.6. they mentioned that Java 1.7 is not supported. so at first i remove all java 1.7 with rpms with this command:
yum -y remove $(rpm -qa | egrep -i '(jdk|jre|java)')

now how can i install the jre 1.6?
thank you.
 
Old 01-12-2015, 04:19 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
openjava 1.6 is in the cent repos

you should have seen it listed from the two commands i posted above

Code:
su -

yum search java
but WHY not just use the rpm from zenoss
http://wiki.zenoss.org/Install_Zenoss

--- the rpm ---
http://sourceforge.net/projects/zeno...4.rpm/download

have you read the install guide ?
--- PDF -warning -
http://www.zenoss.com/documentation/...14-4.2-v20.pdf
 
1 members found this post helpful.
Old 01-13-2015, 03:36 AM   #5
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thank you again John VV.
yum output:
java-1.5.0-gcj.x86_64 : JPackage runtime compatibility layer for GCJ
java-1.5.0-gcj-devel.x86_64 : JPackage development compatibility layer for GCJ
java-1.5.0-gcj-javadoc.x86_64 : API documentation for libgcj
java-1.5.0-gcj-src.x86_64 : Source files for libgcj
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.8.0-openjdk-src.x86_64 : OpenJDK Source Bundle

i red the installation guide. i must install the jre 1.6. the rpm you mentioned is the zenoss main rpm. as far as i know it doesn't contain the jre 1.6.

my main question is why i cant install the jre 1.6!!?
 
Old 01-13-2015, 01:40 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
NO!!!!!

yum will AUTO INSTALL the needed version of java
that is YUM'S job!!!

it was created to solve the dependancy problems

please read the redhat system administration guilds

https://access.redhat.com/documentat...erprise_Linux/

cent uses the redhat documentation



from that sourceforge link for the rpm
cent and firefox should AUTO!!! ask if you want to
A) install the rpm
B) save the rpm
C) other

install the rpm!!!

or
save it to ~/Downloads
and cd to ~/Downloads
and
Code:
su -
cd /home/"YOUR USER NAME"/Downloads
yum localinstall zenoss_core-4.2.5-2108.el6.x86_64.rpm
 
1 members found this post helpful.
Old 01-13-2015, 09:03 PM   #7
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thank you dear John VV.
it solved. i moved the rpm.bin file to another directory and then installation completed successfully!!\i thin the error occurred because of the directory name.
than you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No Java runtime environment (JRE) error linuxandtsm Linux - Newbie 3 06-30-2011 10:07 AM
Installing Java runtime environment... jim_naisium Slackware 11 11-13-2007 06:52 PM
Problems installing Java Runtime Environment veri745 Fedora 7 04-10-2007 05:48 AM
Installing JAva runtime environment jcai Linux - General 3 09-28-2004 03:48 PM
installing java runtime environment Jack Ditchburn Linux - Software 4 04-13-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration