Ubuntu ate my Java

I recently downgraded my Java installation from Sun’s Java 6 to Sun’s Java 5 (ie, sun-java6-* with sun-java5-*). As usual, Ubuntu/Debian made this easy, but I soon discovered that the downgrade hadn’t taken: whenever I tried to run a Java app from the command-line, paths could not be resolved. I was told

Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.

The correct response is to run sudo update-alternatives --config java. Don’t, like this foolish author, start trying to symlink things yourself. It takes effort and is easy to screw up.

2 Responses to “Ubuntu ate my Java”

  1. 2007.Oct.22 @ 22:33

    If I didn’t have Ubuntu on my computer, your title would be gibberish :-)

  • 2007.Nov.16 @ 18:55

    @Saskboy: That’s a risk I’m willing to take.

    I like your gravatar, btw.

  • Reply

    You can use these HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    If your website is claim enabled, it will be notified that you have posted here.