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

Roger Keays is an artist, an engineer, and a student of life. He has no fixed address and has left footprints on 40-something different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, the proper use of semicolons, and finding good food.

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, 15 years ago

Thank's, great work!

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

That worked for me!

thx

Comment posted by: juun, 15 years ago

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

Comment posted by: , 15 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, 15 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. :)