Discussion:
"Java Project Contains Files With Errors"
gmseed
14 years ago
Permalink
Hi

Thanks for your reply.

"You can try to open all the files that have an error badge, and wait a few seconds" --> I don't have any files with the error badge. Just the root project node.

"clear the NetBeans cache (for NB 7.0 : .netbeans/7.0/var/cache/)" --> I see numerous files/sub-directories in the cache. What to delete? Will not deleting the cache crap my entire NetBeans installation?

Graham
gmseed
14 years ago
Permalink
Hi

I have a NetBeans project and on the project node it shows the icon of a red exclamation mark indicating errors. However, there are no errors in the project!

Expanding all package nodes reveals no .java errors. Also, the project runs fine and as expected.

This isn't a new project and I have been working on this project for around 5 years and this issue has just recently arisen.

Has anyone else seen this confusing project node error/non-error?

Thanks

Graham
gros_bidule
14 years ago
Permalink
You can clear all the cache directory. NetBeans will recreate it after restart.
It contains only things you can delete safely (and will always be recreated according ti your NetBeans installation and projects) :
- Update Centers cache (search for updates : the cache will be recreated)
- dictionaries personal worldlists files
- Maven indexes cache (you can recreate the cache by indexing repositories)
- some other caches that will be recreated

If you want backup your installation, you can make a copy of your :
- NetBeans install directory (eg: C:\Program Files\NetBeans 7.0)
- NetBeans preferences (eg: the .netbeans/7.0 folder into Document And Settings/YourName)
If you encounter any problem after cache deletion, you can simply restore your backup ;)
Franz Graf
14 years ago
Permalink
Hi
Post by gros_bidule
You can clear all the cache directory. NetBeans will recreate it after restart.
Just recently I realized that there is a plugin for this purpose:
http://plugins.netbeans.org/plugin/40014/cache-eraser
Haven't tried it yet.

Regards
Franz
--
User FAQ: http://wiki.netbeans.org/NetBeansUserFAQ
If noone answers your questions: http://wiki.netbeans.org/FaqNoAnswer
Java Questions: http://forums.oracle.com/forums/category.jspa?categoryID=285
Continue reading on narkive:
Loading...