LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-27-2006, 05:30 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Rep: Reputation: 30
Installing java on redhat as 4


i hv redhat AS 4. i just downloaded jdk1.5.0.rpm.bin. please tell me how to install it as well as how to configure it to devlope program & complie them.
 
Old 06-27-2006, 06:15 AM   #2
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
1) Login as root user. Switch to directory where this file is located
2) Make this file executable, if not already
Code:
chmod 755 jdk1.5.0.rpm.bin
3) Run this file
Code:
./jdk1.5.0.rpm.bin
Then you will see some screen of Lisence agreement..keep pressing ENTER until it asks you to type "y" or "n". Press "y"...and it will extract an .rpm file in the same directory. Let's assume the filename is jdk1.5.0.rpm

4) Install the jdk1.5.0 rpm file using this command
Code:
rpm -ihv jdk1.5.0.rpm
5) Set path of the java executable in the PATH variable. In your case the path can be different (mostly it's /usr/java/jdk1.5.0/bin)
Code:
export PATH=$PATH:/path/to/jdk1.5.0/bin
6) Also add the export command shown above to /etc/profile if you want this path variable to be available after you reboot

Last edited by manishsingh4u; 06-27-2006 at 06:18 AM.
 
Old 06-28-2006, 04:44 AM   #3
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Original Poster
Rep: Reputation: 30
thanx for help..Solved..!
 
  


Reply



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
Redhat 9 and Java TheMysticWizard Linux - Newbie 2 06-30-2005 09:05 AM
Java in Redhat. Peleus Programming 4 04-05-2004 01:26 PM
x-java-vm for Redhat V9 mfeat Red Hat 5 10-30-2003 09:28 PM
java in redhat 8 key_maker Linux - Software 1 10-02-2003 06:23 AM
installing samba-3.0alpha24-1.i386.rpm into RedHat 8 and RedHat 9 Linh Linux - Newbie 2 06-04-2003 05:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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