How to make openJDK automatically update-alternatives?
- by cgc512
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!