This Step helps you activate pre-installed Java (JDK) version on the build virtual machine.
This Step is not supposed to install any Java version on the fly. You can only pick from the already installed versions. If you want to install other Java versions, check out Using a Java version not installed on our Android stacks.
If the Step fails to set the Java version, you can use these scripts as a temporary workaround.