

Remove an existing JDK from the JEnv listĮnable the use of javac, javaw or other executables sitting in the java directory use overwrites local)Īdd a new Java environment (requires absolute path)Įxample: jenv add jdk15 D:\Programme\Java\jdk-15.0.1Ĭhange your java version for the current sessionĬlear the java version for the current sessionĪlways use this java version in this folder This will set your JAVA_HOME for the current shell and ensures that tools like maven work properly Usage (Note: local overwrites change. Sometimes its necessary to call jenv when entering a new directory with a local jenv specified. Some reported problems putting JEnv into their C:/Programs folder due to required admin rights.If you use powershell you should call /src/jenv.ps1 If your using cmd you need to call the batch file.Run jenv once so the script can do the rest.Please give me a star if you like my work. It's written in cmd and powershell so it can change the environment variables and can run on any Windows-10+.Which requires java8 without changing your environment variables and


It’s recommended to use Windows 10 auto-update mechanism to update Java.
