I've been setting Windows environment variables (like JAVA_HOME
) every time I installed a Java update. (As per Environment variables for java installation).
However, I've recently noticed that Java updates add C:\ProgramData\Oracle\Java\javapath;
to the System Path (not the User Path). I removed JAVA_HOME
, etc from my User Path, and java -version
seems to work from any directory.
Does that mean that it is not necessary to do that simple but annoying task with each Java update?