Jan 18 2010

Playing the peacemaker with Netbeans 6.7.1 and Ubuntu

Published by Lou at 12:55 pm under programming

NetBeans 6.7.1 ships broken in Ubuntu 9.10. Since that’s the development editor I use for writing my software, I could not let it stand. I was getting exceptions about org.apache.log.Hierarchy every time I tried creating a Servlet.

After an hour or so with Google, I discovered this page, which gave me some clues on what the source of the problem was. Here is how I hacked it into working:

bash$ sudo apt-get install liblogkit-java
bash$ cd .netbeans/6.7/lib
bash$ ln -s /usr/share/java/logkit.jar .

Some of the standard Web Application modules seem to assume this jar file is available, and it does seem to be included in Sun’s bundle of NetBeans, but Ubuntu, for some reason, doesn’t make it a dependency or include it in the classpath that NetBeans sees. My commands install the missing Avalon Logkit dependency and then put it somewhere that NetBeans can see it. Meanwhile, I’ve reported it as bug #509255 on Launchpad.

No responses yet

Comments are closed.