At the time this was jdk-6u7-linux-i586.bin for me. bashrc and other scripts every incremental jdk upgrade.Įnvironment variables you might care about: JAVA_LIBDIRįirst, download the latest 32 bit JDK (not JRE) from Sun. I bother with: export JAVA_HOME=/opt/jdkĪlso, I symlink jdk/ -> jdk1.6.0_3/ because I'm lazy and don't like reconfiguring my. I work on the command line a lot, so it's an okay solution for me. I export some vars for the other one when I need it. I let the package manager handle my primary install. The point is: it's easier to use Ubuntu's package manager to maintain exactly one version of a package like java. You don't even have to use apt-get just manually maintain both packages on your system (see next heading).
Or decide which one you want to have automatic updates. Somewhat harder (read: tedious) is switching between versions at a whim.
It's super easy to have multiple versions of Java installed.