Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 5480  / 2 Years ago, mon, december 20, 2021, 7:49:21

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!


More From » openjdk

 Answers
0

I've purged openjdk after uninstalling, and I reinstalled it and worked the alternatives. Then I did an update-java-alternatives to set java to version 7 (I don't know why openjdk-7-jdk sets javac to version 7 and java to version 6 but whatever, now it works). Thanks for your help.


[#39568] Monday, December 20, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
darpose

Total Points: 424
Total Questions: 99
Total Answers: 121

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
darpose questions
Sun, Jan 23, 22, 04:32, 2 Years ago
Tue, Apr 25, 23, 23:44, 1 Year ago
Wed, Dec 15, 21, 14:42, 2 Years ago
Wed, Jun 2, 21, 23:41, 3 Years ago
;