Upgrading to Jenkins on Ubuntu Natty
I just upgraded Ubuntu to Natty Narwhal 11.04 (from Maverick Meerkat 10.10). Yes, I know I’m behind a release or two, but that seems a bit safer. Esp. when I’ve got deadlines to meet!
I had installed Hudson earlier. Thankfully, Ubuntu put Jenkins into the official repositories, so I decided to go with that. (Besides, Jenkins seems to have most of the developer support these days.)
Unfortunately, Jenkins failed to start. When I looked at the log file in /var/log/jenkins/jenkins.log, here’s what I saw:
jenkins start-stop-daemon: unable to stat /usr/lib/jvm/default-java/bin/java (No such file or directory)
Strange. Well, I saw somewhere that Natty switched completely to OpenJDK, away from any Sun-related JDK. (Blame it on Oracle’s takeover of Sun.*)
To fix it, I simply created a symlink from the existing OpenJDK to this “default-java”, like so:
$ cd /usr/lib/jvm/ $ sudo ln -s java-6-openjdk default-java
Now it works fine.
*Natty also switched from OpenOffice.org to LibreOffice. No warning, just “switcheroo!” I understand it, but still an unexpected surprise. And I don’t generally like unexpected changes of this magnitude.