Created
January 22, 2018 11:24
-
-
Save tapannallan/1b90fe01bb925b2261d6a2dd331e81bc to your computer and use it in GitHub Desktop.
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
@echo off | |
if "%1" == "java" ( | |
if "%2" == "9" ( | |
echo Using Java 9 | |
SET JAVA_HOME="%JAVA9_HOME%" | |
SET PATH="%JAVA9_HOME%\bin";%PATH% | |
) | |
if "%2" == "8" ( | |
echo Using Java 8 | |
SET JAVA_HOME="%JAVA8_HOME%" | |
SET PATH="%JAVA8_HOME%\bin";%PATH% | |
) | |
CALL java -version | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment