I solved this by installing another javavm, jamvm (whatever would work I
think, kaffe etc), then selecting it:

$ sudo update-alternatives --config java
There are 2 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
 +        1    /usr/lib/jvm/java-6-openjdk/jre/bin/java
          2    /usr/bin/jamvm

Press enter to keep the default[*], or type selection number: 2
Using '/usr/bin/jamvm' to provide 'java'.

##########################

Then selecting openjdk again:

$ sudo update-alternatives --config java

There are 2 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
 +        1    /usr/lib/jvm/java-6-openjdk/jre/bin/java
*         2    /usr/bin/jamvm

Press enter to keep the default[*], or type selection number: 1
Using '/usr/lib/jvm/java-6-openjdk/jre/bin/java' to provide 'java'.

##########################

Then I uninstalled jamvm, and it's fine now.

I think it's a bug that OpenJDK does not get configured automatically as
java if there are no alternatives

** Changed in: openjdk-6 (Ubuntu)
       Status: New => Confirmed

-- 
system does not see /usr/bin/java
https://bugs.launchpad.net/bugs/208529
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to