Take the tour ×  How can I install java JDK on CentOS 5.4 using
yum?  I have JRE only, but it's not enough.  share|improve this
question add comment  3 Answers  You can install the Java
Development package group using  # yum groupinstall "Java
Development" share|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 add comment up vote 2 down vote
accepted  I can't do it with yum. I had to do it manually,
downloading JDK and installing it.  share|improve this answer
add comment  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.
share|improve this answer add comme