Home > Projects > Upgrading to Jenkins on Ubuntu Natty

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.

Advertisement
Categories: Projects Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.