Java on Ubuntu Edgy

Tagged:  •    •    •  

I had Java running on my Ubuntu system for quite a while now and I switched to the Sun package provided by Ubuntu as soon as it became available. Upgrading to Edgy seemed smooth with regards to Java, until last Friday. The problems I started noticing were related to keystore generation, first issues with the format of distinguished names (no spaces accepted after commas anymore) and today problems with the format of the keystores. Keystores created with keytool could were no longer recognized by Java code.

It turns out that the version of keytool I was using after upgrading to Edgy was the one provided by Gnu. Actually the whole set of Java binaries was a mix of Sun and Gnu binaries. Running a debian alternatives command fixed this:

$ sudo update-java-alternatives --set java-1.5.0-sun

You can also find good instructions on ubuntuguide.org.

Something is definitely wrong either with Edgy or the alternatives system. You should never end up with a mixed system IMO.

Technorati Tags:

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options