LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-30-2010, 12:27 AM   #1
arun8900
LQ Newbie
 
Registered: Aug 2010
Location: jalandhar
Distribution: any
Posts: 11

Rep: Reputation: 0
Thumbs up installing java in rhel5


Can Anyone tell me...
How do i install java(jdk) in rhel5..
please tell me the link fron where i can install the proper rpm of java..
and steps to install it..
regards
Arun Ralhan...
 
Old 08-30-2010, 12:30 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
First page of Google matches yields: http://openjdk.java.net/install/ .
 
1 members found this post helpful.
Old 08-30-2010, 05:28 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,242

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
BUT you will need to change it to /epel-release-5-4.noarch.rpm

the very old 5.2 is not on the fedora el5( red hat) repo

and see your paid for support on the "red hat network "
http://www.redhat.com/support/

or the centOS 5 wiki
http://wiki.centos.org/HowTo
http://wiki.centos.org/HowTos/JavaOnCentOS
open jdk
http://wiki.centos.org/HowTos/Java/OpenJDKOnCentOS
 
Old 08-30-2010, 06:31 AM   #4
Jerry Mcguire
Member
 
Registered: Jul 2009
Location: Hong Kong SAR
Distribution: RedHat, Fedora
Posts: 143

Rep: Reputation: 17
Your RHEL 5.x Server DVD has a directory named Server, in which there are the rpm's you need. Of course you can simply do a yum install if you have registered with RH.

I did mine by mounting the directory in an ftp server, and then setup the repository to it:

Code:
# cat /etc/yum.repos.d/RHEL-DVD-Server.repo
[RHEL-DVD-Server]
enabled = 1
name = DVD Server directory
baseurl = ftp://xxx.xxx.xxx.xxx/pub/RHEL_5.4_x86_64_DVD/Server
gpgcheck = 0
then, use 'yum' to install and resolve the depenencies.

Last edited by Jerry Mcguire; 08-30-2010 at 06:37 AM.
 
1 members found this post helpful.
Old 08-30-2010, 10:25 AM   #5
vbekker
Member
 
Registered: Aug 2010
Location: Brooklyn, NY
Distribution: CentOS
Posts: 38

Rep: Reputation: 0
Grab the non rpm tar.gz from the interwebs
extract it to /usr/local/ OR /opt/
Make a symlink to the folder so it's easier on upgrades/downgrades later on
Make sure your $PATH contains the path to the java folder
You might need some java dev tools installed, but for most applications, setting the $JAVA_HOME or $JRE_HOME is sufficient
set $JAVA_HOME, perhaps place it in the .bashrc

Code:
JAVA_HOME=/usr/local/jdk
export JAVA_HOME
 
1 members found this post helpful.
Old 08-30-2010, 07:34 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 13,242

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
as normal you ask ONE question and get about 6 ALL correct answers

there is normally many different ways of doing the same thing
 
1 members found this post helpful.
Old 08-31-2010, 09:53 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,127

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
.. And my "preferred" is : jdk-1.6.0_20-fcs.x86_64.rpm
( Or i386 : jdk-1.6.0_20-fcs.i586.rpm )
http://ftp.scientificlinux.org/linux.../55/x86_64/SL/

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

3) /usr/sbin/alternatives --config java
.......

P.S. : There is no java-openjdk in the EPEL repo.
It's in the (paid) "redhat.repo".
.

Last edited by knudfl; 08-31-2010 at 09:58 AM.
 
1 members found this post helpful.
  


Reply

Tags
alternatives, jdk6, programming language


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
Problem in Installing JAVA in RHEL5 hemanthkm Linux - Newbie 1 08-26-2010 06:27 AM
Installing RHEL5 in laptop veeravicky Linux - Laptop and Netbook 3 03-04-2010 09:09 AM
Problem in installing RHEL5 rpraveen6r Linux - Hardware 0 03-01-2009 09:45 AM
installing GEForce8400GS on RHEL5 manianbala29 Linux - Desktop 3 12-12-2008 01:42 PM
RHEL5/Telnet/Java rao_marre Linux - General 1 04-16-2007 08:51 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration