Any way to keep java 8 alongside java 16?

I run a 1.12 server and want to spin up a 1.17.1 one, any way to have multiple installations of java on a single machine?

Yes, MineOS supports having several java versions:

You might have to update your MineOS isntallation to get this to work though: