OSTechNix published a tutorial about managing multiple Java versions eith jEnv on Linux.
How To Manage Multiple Java Versions With jEnv On Linux
jEnv is a command line tool to manage multiple java versions on Linux. jEnv is useful for developing java applications that requires an exact Java version.
How To Manage Multiple Java Versions With jEnv On Linux - OSTechNix