Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have need of installing a Java 7 development environment on a RHEL 6.3 (system details are below). Following the official OpenJDK directions I tried yum install java-1.7.0-openjdk-devel (as root). This yields the error message:

No package java-1.7.0-openjdk-devel available.

The Java6 JDK java-1.6.0-openjdk-devel and the Java7 JRE java-1.7.0-openjdk are both available, but the Java7 JDK does not appear.

Is there a non-default repository from which I can install this? If so what is it?

  • Distribution: Red Hat Enterprise Linux Server release 6.3 (Santiago)
  • Kernel: 2.6.32-279.5.2.el6.x86_64
share|improve this question
I removed the -devel suffix and it worked. See matched answer below. –  AlikElzin-kilaka May 31 at 8:23

2 Answers 2

up vote 3 down vote accepted

The package you are looking for is in the Red Hat Enterprise Linux Server Optional channel which may not be enabled.

Try this:

# yum repolist all
# yum-config-manager --enable rhel-6-server-optional-rpms
share|improve this answer
That seems to have done it. Thanks. –  andand Nov 5 '12 at 14:52

I removed the -devel and it worked:

yum install java-1.7.0-openjdk

If you already have another java version installed, don't forget to configure the system so that the new version will be used:

alternatives --config java
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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