Ubuntu 11.04 – Netbeans 7 clear cache
Sometimes code completion for Netbeans can be corrupted and will not work anymore for a certain project. This can be fixed if you clear the Netbeans cache.
Close Netbeans. Remove the cache folder:
rm -rf "/home/YOURNAME/.netbeans/var/cache"
Start Netbeans 7 and everything should be working fine again!