Archive

Posts Tagged ‘cache’

Clear your cache in NetBeans

May 26, 2010 17 comments

There’s a problem I’ve run into in NetBeans once or twice where NetBeans places red underlines signalling compile errors in your projects, but the project actually builds and runs fine.  It’s very irritating, and I’m not sure what causes it, but from what I’ve been able to find online it’s caused by a corrupted cache (the editor view thinks the file cannot be compiled due to some stale information).  To fix this, execute the following command in the terminal

rm -rf /path/to/netbeans/6.8/var/cache/

(replacing 6.8 with the version of Netbeans you’re running)

Advertisements