How can I install java JDK on CentOS 5.4 using yum?

I have JRE only, but it's not enough.

link|improve this question

75% accept rate
feedback

3 Answers

You can install the Java Development package group using

# yum groupinstall "Java Development"
link|improve this answer
FYI, this installs GCJ, not the Oracle/Sun JDK. Use yum groupinfo "Java Development" for more information. – Matt Solnit Jul 25 '10 at 22:28
And I'm getting JDK 1.4, instead of 1.5.. Can I get 1.5 somehow? – yegor256 Jul 26 '10 at 6:55
feedback
up vote 2 down vote accepted

I can't do it with yum. I had to do it manually, downloading JDK and installing it.

link|improve this answer
feedback

Download the JDK rpm-bin version, unpack it, wrap it into your own repository, add the repository to your CentOS and then install.

Or use yum localinstall RPM. Why did you ask this?

We do something along the above lines to be able to distribute JDK-Updates to all our CentOS servers using yum-cron.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.