Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.