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 have installed jdk 1.6.37 in fedora 17 which already has java 1.7 openjdk i want to set java 1.6 as my default java how can i do this...

When i check the following command in terminal

                 alternatives --display java

the result does not list the jdk 1.6.37 but it actually installed and exist in /usr/java/

share|improve this question

First you need to install alternatives :

update-alternatives --install /usr/bin/java java /path/to/bin/java 100

Then you can configure your java alternatives :

update-alternatives --config java
share|improve this answer

Let, update-alternatives --config java guide you.

Are you sure you want jdk (java development kit) instead of standart jre (java runtime environment) ?

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.