jump to navigation

Fixing NetBeans install problem in Ubuntu Hardy April 16, 2008

Posted by techscope in linux, tutorials, ubuntu.
Tags: , , , , , , ,
add a comment

Since I dumped Borland JavaBuilder 2 years ago, NetBeans has surely been my favourite for Java development.

After installing the NetBeans IDE through (Applications->Add/Remove) on a fresh 8.04, I ran into an interesting problem. The IDE would start sort of normally, but at the module loading stage you would be presented a message that the system is running with JRE instead of JDK, so expect some loss of functionality.

Surely, we can notice the loss of functionality straight away, the code and project browser do not work at all.

I thought that simply installing the open-jdk package from repositories would fix NetBeans, but I was wrong. Even after specifying the path to the newly installed open JDK in Tools->Java Platforms, the IDE would not update its paths by itself.

The trick that worked for me was to BEFORE re-installing NetBeans go to /home/your_user_name folder and DELETE the hidden .netbeans directory (it is necessary, because the IDE settings are stored there, and this directory is not deleted by default even if you uninstall NetBeans).

Now, you can enjoy programming again 😉

Advertisements