...
Doing this task one by one is pretty tedious, we provide a shell script ito facilitate the work.
The trick here is to always increment the priority number for a new installed JDK JVM and define a unique alternative name. Here is an excerpt of the man page:
...