LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-17-2011, 03:06 AM   #1
vamsi_k
Member
 
Registered: Aug 2008
Posts: 66

Rep: Reputation: 18
Regding JAVA Installation in CENTOS/RHEL


Note : Test it on Test Machine before you do it on live server

O.S : RHEL 5 / CENTOS 5

FYI.... OR IDEA

If you wish to install only jre

download & install jre-6u18-linux-i586-rpm.bin

in /usr/java ( Note create java dir { mkdir /usr/java }


#ll /usr/bin/java
lrwxrwxrwx 1 root root 22 Feb 12 19:24 /usr/bin/java -> /etc/alternatives/java

unlink /usr/bin/java

&

link basing below

link -s /usr/bin/java /usr/java/default/bin/java


#ll /usr/bin/java
lrwxrwxrwx 1 root root 26 Apr 19 2010 /usr/bin/java -> /usr/java/default/bin/java

ADD lines basing below info :

vim /etc/profile
& in
vim ~/.bash_profile


ADD at the end of the file :
export PATH=$PATH:/usr/java/jre1.6.0_18/bin


#export $JAVA_HOME=/usr/java/jre1.6.0_18/bin

#echo $JAVA_HOME
/usr/java/jre1.6.0_18/bin



#java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)


IF u wish install JDK ***************************************************

then download & install jdk-6u24-linux-i586-rpm.bin

in /usr/java ( Note create java dir { mkdir /usr/java }


vim /etc/profile
& in
vim ~/.bash_profile


ADD at the end of both files :

export PATH=$PATH:/usr/java/jdk1.6.0_24/bin


#export $JAVA_HOME=/usr/java/jdk1.6.0_24/bin

#echo $JAVA_HOME
/usr/java/jdk1.6.0_24/bin


#java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

Thats All...

Last edited by vamsi_k; 02-17-2011 at 03:07 AM.
 
Old 02-18-2011, 01:13 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Thanks for sharing that. I'm sure it will come in handy for someone. Off the Zero Reply List.

Kind regards,

Eric
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel/centos file execute and installation salimshahzad Linux - Newbie 1 03-06-2010 07:15 AM
Installation of java on RHEL 5 Soby Thomas Linux - Software 4 04-23-2009 02:36 AM
Regding oracle10g installation vamsi_k Linux - Newbie 4 11-27-2008 05:39 PM
Rebuild A Server Installation Disk from RHEL of CentOS Source RPm kenwee Red Hat 2 05-09-2006 05:36 AM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:33 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