For both work and fun, I run Linux. I'm also a Java guy, which poses some interesting challenges, as most Linux distributions have a long, sad tale regarding shipping Java. Things are a bit better, I guess, with OpenJDK, but I've always liked running the "real thing", which historically meant the Sun JDK, and now Oracle's JDK . At the moment, though, I'm running Linux Mint
, so I get to use the tarball.
Most of the time that works fine, but for reasons I don't remember, OpenJDK was installed on my system, and now everything is using that (which is at Update 7, and not the recently released and more secure Update 11 that I want). I'd rather not monkey with changing PATH and all that, so I turned to the Linux alternatives system to handle things. Sadly, it wasn't quite that easy, as alternatives needs to know about your alternatives, so before I could change things, I had to educate it, which turned out be easier than I feared. With Java 7 Update 11 installed in /opt/java/jdk1.7.0_11
and symlinked from /opt/java/latest
, I had to do two things.