LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 02-10-2011, 06:24 AM   #1
danndp
Member
 
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
how to install sun-java6-jdk on Red Hat


Hello,

I need to install sun-java6-jdk for my red hat server rather than than the free alternative GNU compiler for java (GCJ); but i can't install it...on Debian i can, but on red hat is impossible...has anyone worked with this?

Thanks iin advance
 
Old 02-10-2011, 06:54 AM   #2
r_hartman
LQ Newbie
 
Registered: Feb 2011
Location: Netherlands
Distribution: CentOS
Posts: 15

Rep: Reputation: 0
Have you visited java.com at all?
For RedHat you want the RPM file.
On http://java.com/en/download/manual.jsp you'll find both 32-bit en 64-bit RPMs.
Download the appropriate RPM file to your /tmp directory and execute
Code:
# yum --nogpgcheck localinstall /tmp/<rpmfilename>
 
Old 02-10-2011, 08:23 AM   #3
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Thanks for the answer...but it's not workin, i might be doing something wrong:

Quote:
OpenSIPS:/home/opensips/Desktop# mv jre-6u23-linux-i586-rpm.bin /tmp/
OpenSIPS:/home/opensips/Desktop#yum --nogpgcheck localinstall /tmp/jre-6u23-linux-i586-rpm.bin
Loaded plugins: rhnplugin, security
Setting up Local Package Process
Cannot open file: /tmp/jre-6u23-linux-i586-rpm.bin. Skipping.
Nothing to do
Any help please?

Regards!
 
Old 02-10-2011, 09:03 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
'jre-6u23-linux-i586-rpm.bin' is an installer, that will install
the rpm package : # sh jre-6u23-linux-i586-rpm.bin


Next you can do these two command to have java in your path :
1)
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_23/bin/java 2

2) # /usr/sbin/alternatives --config java

..
 
Old 02-17-2011, 02:43 AM   #5
r_hartman
LQ Newbie
 
Registered: Feb 2011
Location: Netherlands
Distribution: CentOS
Posts: 15

Rep: Reputation: 0
@danndp
Sorry, I was in a hurry and posted too quickly. While it's a .rpm, it's one of those packed with its own installer, so yum cannot handle it.

knudfl's post should have gotten you going. Would be nice if you can post whether your issue is solved.
 
Old 02-17-2011, 05:35 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
.. And today it's actually jre-6u24-linux-i586-rpm.bin, that should be used.

'jre-6u24' ( jdk-6u24 ) is a bug fix version.

Earlier versions are vulnerable for attacks.
 
Old 02-18-2011, 05:22 AM   #7
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Hi....Yes, i did solve the problem with the information provided by knudfl

MANY THANKS!!!
 
  


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
E: Couldn't find package sun-java6-jdk sblessing Linux - Software 5 05-14-2010 03:26 PM
problem when install sun-java6-jre oakhill Ubuntu 2 01-09-2010 10:57 AM
I can't install sun-java6-jdk sun-java6-bin sun-java6-jre citye Linux - Newbie 2 10-18-2009 04:54 AM
how to install jdk 1.5 in red hat linux souvikc Linux - Newbie 12 07-13-2008 11:34 AM
installing sun-java6-jdk dcbc Linux - Software 2 04-02-2008 07:17 AM


All times are GMT -5. The time now is 10:56 PM.

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