I have found out that setting the PATH environment variable affects only the old command prompt. PowerShell seems to have different environment settings. How do I change the environment variables for
It is a NO GO - NEVER EVER using setx with %PATH% to modify persistent stored user or system environment variable PATH. That results always in a PATH corruption by duplicating folder paths, replacing environment variable references by their expanded forms and perhaps a truncation of existing PATH variable with folder path to add not added at all.
The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE I resolved this issue by deleting JAVA_HOME environment variables from User Variables / System Variables then restart the laptop, then set JAVA_HOME environment variable again.