Created
January 12, 2019 22:25
-
-
Save cenkc/61fb3acf18991d554294556ca0445be9 to your computer and use it in GitHub Desktop.
Switching between JDKs on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jdk8.bat | |
@echo off | |
set JAVA_HOME=D:\Java\jdk1.8.0_111 | |
set PATH=%JAVA_HOME%\bin;%PATH% | |
echo Displaying Java Version | |
java -version | |
//jdk11.bat | |
@echo off | |
set JAVA_HOME=D:\Java\jdk-11.0.1 | |
set PATH=%JAVA_HOME%\bin;%PATH% | |
echo Displaying Java Version | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment