I think there is no such tool. Each platform has its own systems. Debian / Ubuntu, RedHat / CentOS, and SLE / OpenSUSE (perhaps some other distributions) use an alternative mechanism. Mac OSX has its own switching mechanism for changing the current JVM in use.
I need to support many workstations and developer servers. All * based on nix (OSX, Linux, Solaris) and used to install all JVMs in the directory and create a symbolic link CURRENT to the version that should be used. The variable JAVA_HOME and PATH points to this symbolic link CURRENT. If Ia wants to use another version only haf to move the symbolic link CURRENT. No further action is required.
Unfortunately, this approach does not work for Windows-based systems.
source share