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.

When I install the JRE of OpenJDK 1.7 on Ubuntu 11.10 (or Xubuntu 11.10), it automatically installs OpenJDK 1.6. When now launching java -version on the console, version 1.6 is shown. How to install just OpenJDK 1.7 without OpenJDK 1.6?

share|improve this question
2  
I've created a bug report: bugs.launchpad.net/ubuntu/+source/java-access-bridge/+bug/… –  user103666 Nov 1 '11 at 7:48
add comment

1 Answer

up vote 1 down vote accepted

It installs OpenJDK 1.6 because there is a dependency chain openjdk-7-jre -> libaccess-bridge-java-jni -> libaccess-bridge-java -> openjdk-6-jre. Without explicitly breaking the dependencies, there's little you can do here. You should file a bug for the too strict dependency of the libaccess-bridge-java package.

In the meantime, you can select which java version should be used with

sudo update-alternatives --config java
share|improve this answer
add comment

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.