Netbeans 6.5 + Ubuntu 8.10 LAF BugPosted by Roger Keays, 9 December 2008, 12:42 PM |
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
| << Vim Keybindings for Netbeans | Back to Blog | How To Create Email from JSF Pages >> |
Comment posted by: Jason Lee on 09/12/2008 11:52:51 PM
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. :)
Comment posted by: Roger Keays on 10/12/2008 12:45:11 AM
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: juun on 18/12/2008 5:07:22 PM
when i try this above command netbeans does't install in my pc why ?
Comment posted by: Christopher Lauzière on 26/02/2009 6:32:10 AM
That worked for me!
thx
Comment posted by: Pali on 28/02/2009 5:38:36 AM
Thank's, great work!