Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I having difficult time installing Sun's JDK on CentOS. The default installing with "yum" is "openJDK", but I need to install Sun's JDK. Is there easy instruction out there I can use or any suggestion?

share|improve this question

Oracle no longer supports JDKs earlier than 7, however, you can still download them from here. For the latest version, go here.

Choose your version and architecture. You want the Linux version. Get the .rpm.bin version.

Using the root account, or the sudo command, run the file you downloaded (chmod it if necessary). This will extract & install the Java packages.

You are done. You can run java -version in your terminal to verify. Also take a look at CentOS wiki about SunJDK

You can see what got installed by running rpm -qa | grep java.

share|improve this answer
If you don't want JavaDB installed, try unzip jdk-6u26-linux-i586-rpm.bin jdk-6u26-linux-i586.rpm, then rpm -ivh jdk-6u26-linux-i586.rpm, this will install only JDK. – LiuYan 刘研 Jun 26 '11 at 19:16
I am getting "Package jdk-6u26-linux-i586.rpm is not signed" -- any ideas? – Joseph Weissman Aug 4 '11 at 14:43

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.