Setting a variable JAVA_HOME (+Path): C:\Program Files\Java C:\Program Files\Java\jdk-20 C:\Program Files\Java\jdk-20\bin
Attempt to leave only for the user and only for system Other solutions from: Here Here and many other sources offering similar solutions with changing the "JAVA_HOME" variable.