I think, therefore I blog

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- /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. Since he left Australia in 2009, he has been living as a digital nomad in over 40 different countries around the world. Roger is addicted to surfing. His other interests are music, psychology, languages, and finding good food. Click here to subscribe to his weekly blog, or stalk him on Facebook and Twitter.

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

Thank's, great work!

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

That worked for me!


Comment posted by: juun, 7 years ago

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

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

Join Over 1000 Subscribers

I write every Sunday about travel, psychology, and technology. Thousands of people just like you have already subscribed—and for good reason. It'll change your life. And it's free :)

Read a Good Book

“A spellbinding true story of love, passion and adventure. One can’t help but be swept away by 100% Love Guaranteed.” —Dr Tammie Matson, author of Elephant Dance.

Chat For A While

Your Vote Matters

Which animal will take over when humans go extinct?