How to make openJDK automatically update-alternatives?

Posted by cgc512 on Ask Ubuntu See other posts from Ask Ubuntu or by cgc512
Published on 2012-03-30T20:43:05Z Indexed on 2012/04/11 5:44 UTC
Read the original article Hit count: 298

Filed under:

Well, I've made a fresh Ubuntu 11.10 install and I installed openJDK 7. It updated alternatives just after installing, so it was all good. Then, I compiled a source and executed it and it didn't worked, then I noticed that java was using the version 1.6, while the javac was 1.7. I thought I had installed it wrong, so I uninstalled it and installed it again. But now, it does not update alternatives automatically (it does it only for javaws). Is there a way to "restart" it so the apt-get does the update-alternatives by itself like the first time? Is it normal that it uses the java 1.6 instead of the java 1.7 when installing openJDK 7?

Thank you very much!

© Ask Ubuntu or respective owner

Related posts about openjdk