LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2011, 01:15 PM   #1
PabloMiranda
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Thumbs down Trouble to install JRE 6 in RHEL


I am setting a remote Red Hat Linux, and need to install JVM 1.6, the current version is java 1.4.2. After downloaded the rpm jre, and install correctly, asked for the installed version with command< java -version > and the system say again java 1.4.2.

I am newbie in Linux, Java and English language, but can read and follow instructions, please anybody can help me.
Thanks
 
Old 09-09-2011, 01:22 PM   #2
Genocide_Hoax
Member
 
Registered: Apr 2011
Distribution: OpenSuse 12.3 , Slackware 13.1 ; Centos 6.2 ; Fedora 14
Posts: 90

Rep: Reputation: 8
if the installation was clean try rebooting.
 
1 members found this post helpful.
Old 09-09-2011, 01:27 PM   #3
PabloMiranda
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I believe was clean, and already reboot, but nothing...
 
Old 09-09-2011, 04:59 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The usual solution : Install the package jdk-1.6.0_26-fcs for your architecture:
32bit http://ftp.scientificlinux.org/linux...6-fcs.i586.rpm
64bit http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm

Setting up the new java : 1) su
2)
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_26/bin/java 2

3) /usr/sbin/alternatives --config java
.. And select the "sun jdk6".

.
 
Old 09-09-2011, 06:29 PM   #5
PabloMiranda
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks knudfi, i will try later
 
Old 09-10-2011, 09:31 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,512

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
All of that is wrong

What you really need to do can be summed up in two steps:
uninstall/remove the OLD version 1.4.2, and make sure that there are links in a path directory for the NEW version (1.6.x).

For the first step, query your package manager (dpkg on Debian based systems, rpm on RH based systems)
For the second, you need to know the install folder for your new version, and make sure there is an environment variable (perhaps defined in /etc/profile or /etc/environment, depending upon your distribution) and that the BIN under that path gets added to the path variable. A little VI editing may be needed for this. You can also simply link all of the critical executable files from that bin folder into {for example} /usr/local/bin. IF that has already been done, simply removing the old version may suffice.

Quite easy for a sysadmin or anyone who normally installs from source. If it seems difficult to you, you may want to get some help from someone comfortable with such changes.
 
Old 09-10-2011, 10:04 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6
Quote:
uninstall/remove the OLD version 1.4.2
No. That's why you have the /etc/alternatives mechanism :
To select between versions.


""query your package manager"" : No jre / jdk package for RHEL5.
The available one, jdk-1.6.0_26-fcs.<arch>.rpm for EL5 :
CERN / Scientific Linux links post # 4.

.
 
  


Reply

Tags
jdk6


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox 5 Install Trouble on RHEL 6.1 Alpo Linux - Software 1 07-25-2011 11:37 AM
Jre problem on RHEL-5 kapilbajpai88 Linux - Newbie 9 10-23-2009 06:42 PM
Trouble installing jre and Flash Player on RHEL4 gaur.ankit2007@gmail.com Linux - Newbie 2 01-03-2009 10:21 PM
trouble with JRE 1.5 and running a .jar toaster.waffle Linux - Software 4 06-21-2006 11:33 PM
JRE Trouble manik2k5 Linux - Software 2 03-21-2006 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 AM.

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