I have restarted my cmd line after setting the environment variables. Javac is set to version 11, but java is still set to 8?
I have set my path variables like this:
There are no entries from other java versions in my Path variables like in this question: Installed Java 14 but Java -version still showing old Java
I have double checked that java.exe and javac.exe are in fact at location C:\Program Files\Java\jdk-11.0.7\bin:
I have read the other questions to this problem on Stackoverflow, but it was always that they set a wrong path, forgot to append /bin or had old paths to other java versions in their environment variables. I also tried reinstalling Java 11 and restarting the computer (as last idea). What else could I try?


