Netbeans 6.5 + Ubuntu 8.10 LAF Bug

By , 9 December 2008

Netbeans 6.5 + Ubuntu 8.10 LAF Bug

This is how Netbeans 6.5 looked out of the box on Ubuntu 8.10 for me. The line spacing is screwed up.

The problem was Ubuntu had installed openjdk-6-jdk for me, but Netbeans must have only been tested with sun-java6-jdk. To fix this fire up your terminal and type:

$ sudo apt-get install sun-java6-jdk
$ sudo rm /usr/lib/jvm/default-java
$ sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.10/ /usr/lib/jvm/default-java
Netbeans 6.5 + Ubuntu 8.10 LAF Bug

About Roger Keays

Netbeans 6.5 + Ubuntu 8.10 LAF Bug

I guess I'd call myself a problem solver. Either that, or I'm some sort of organic machine designed to convert oxygen into carbon dioxide. You could go either way on that. I'm into languages and stuff. I wrote a book. It's okay, I guess. What else? I like reading, swimming, eating, and playing music. Satisfied? Sheesh.

Leave a Comment

Please visit https://rogerkeays.com/blog/netbeans-6.5-ubuntu-8.10-laf-bug to add your comments.

Comment posted by: Pali, 8 years ago

Thank's, great work!

Comment posted by: Christopher Lauzière, 8 years ago

That worked for me!

thx

Comment posted by: juun, 8 years ago

when i try this above command netbeans does't install in my pc why ?

Comment posted by: , 9 years ago

Hey Jason, thanks for tip :) I've been through too many linux distros to remember how to do this stuff on each one!

Comment posted by: Jason Lee, 9 years ago

A more "correct" way, rather using rm and ln, would be to use the command alternatives.  There's a GNOME version called galternatives, iirc.  Either one gives you an interface of some sort for managing things like this. :)