Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .