2008-04-19

Netbeans errors with toplinklib

Platform: Debian

Problem:

Netbeans 6 has integration with Sun Wireless Toolkit via the SWT plugin. Installing this plugin requires specifying a directory with a java(1) executable, but specifying /usr/lib/jvm/java-6-openjdk/jre/bin/ causes the install to fail since a jar(1) executable isn't in that directory.

However, /usr/lib/jvm/java-6-sun/bin/ works since this directory has symlinks to all important java6 related binaries. The /usr/bin directory works as well if one runs "sudo update-java-alternatives --list" then "sudo update-java-alternatives --set java-6-sun" (or use java-6-openjdk).

Anyway, half the plugins didn't work, and wiping out the ~/.netbeans* directories didn't fix anything.

Netbeans keeps complaining about needing org-netbeans-modules-j2ee-toplinklib although it is present and seems fine.

Solution:

Go to the plugins in Netbean, select Installed Plugins, select "Java Persistence" and uninstall. Then re-install this upon reloading Netbeans.

Now all the broken plugins start working again.

No comments: