Turns out linux lets you install multiple installations of different versions of java, so you can easily switch between them to test compatibility for stuff you are working on. You have to tell the computer which of the installations it should use when you type the "java" command.