I used to use like this.
JAVA_HOME=C:\...
Path=...;%JAVA_HOME%\bin
And I want to use two separated variables for JAVA_HOME and tried this.
JAVA7_HOME=C:\...
JAVA8_HOME=C:\...
JAVA_HOME=%JAVA8_HOME%
Path=...;%JAVA_HOME%\bin
And it seems not work. The actual value of Path just contains %JAVA8_HOME%.
C:\Users\whoami\>echo %Path%
...;%JAVA8_HOME%\bin;...
C:\Users\whoami\>
How can I make this work?