Frequently Asked Questions
Running multiple java versions on a Linux server
If you have multiple versions of java running on a linux server, then the most recent version will be the default version. If you want to set a different version as your default, then run:
update-alternatives --config java
This will list out all versions (or will tell you that there is only one version) and give you the option to set any of the existing versions as the default.