As far as I can tell my System JAVA_HOME Variables are set correctly, but echo %JAVA_HOME% returns a wrong path (it is for an old version of Java) even after I restarted windows.
Another program also thinks JAVA_HOME is set to this wrong path.
I'm using Windows 10.
