Today I've started to get this warning in the console, when I try to compile my programs with javac:
warning: Blabla.class: major version 52 is newer than 51, the highest major version supported by this compiler.
it is recommended that the compiler be upgraded.
But how can I do that?
PS. command javac -version
returns 1.7.0_85, while java -version
returns 1.8.0_66. I do not know how this mixture has happened.
javac -version
– A.B. Nov 12 '15 at 06:27sudo update-alternatives --config javac
– A.B. Nov 12 '15 at 06:33