Switch java versions faster with .bat, Windows 10

Опубликовано: 13 Июнь 2026
на канале: Jesse Nerio
1,707
15

GitHub: https://github.com/JesseGuerrero #java #javajdk
Switch java versions faster with .bat files in Windows 10. Here are the instruction:

Written instructions:
0. Install all Java versions
1. Add "%JAVA_HOME%\bin" to path in system variables
2. Make the .bat file for each version of Java
--
setx JAVA_HOME "[Java JRE/JDK Directory]" /m
--
3. Run the .bat file as admin
-Needs admin
-You need to restart the prompt or have it off

Java LTS(Long-Term Support) versions:
Java 8: https://www.oracle.com/java/technolog...

Java 11: https://www.oracle.com/java/technolog...

Java 14: https://www.oracle.com/java/technolog...

Website: https://warbycode.com/
Like my stuff? Subscribe, like or comment to support the channel!