Discussion:
Projects Window Error parsing File red exclamation mark
alan314
2009-01-15 16:33:33 UTC
Permalink
Hi,



I also have the same problem. The source file complies without errors.



Does anybody have an ideas why we get this error message?



Cheers
alan314
2009-01-20 21:56:20 UTC
Permalink
**bump**



Any ideas??
Peter B. West
2009-01-21 09:04:54 UTC
Permalink
Post by alan314
**bump**
Any ideas??
More information?
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/folio.html>
alan314
2009-01-21 09:36:08 UTC
Permalink
In the project explorer there is a red exclamation mark See file attached.



But when I view the file in the editor there are no errors and it compiles successfully.




Attachments:
Loading Image...
Peter B. West
2009-01-22 10:02:26 UTC
Permalink
Post by alan314
In the project explorer there is a red exclamation mark See file attached.
But when I view the file in the editor there are no errors and it compiles successfully.
http://forums.netbeans.org//files/error_212.jpg
Try removing your cache directory. On linux, it's
~/.netbeans/6.5/var/cache

On Windows, it's in somewhere in you users directory under 'Documents
and Settings'.

Shutdown NetBeans, remove the cache, and restart.

See if that makes a difference.
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/folio.html>
alan314
2009-01-22 10:50:36 UTC
Permalink
Hi Peter,



I have removed the cache dir from

D:\Documents and Settings\alan\.netbeans\6.5\var



But I still get the same error.



Cheers
llemonswork
2009-01-23 22:07:16 UTC
Permalink
Post by alan314
Hi Peter,
I have removed the cache dir from
D:\Documents and Settings\alan\.netbeans\6.5\var
But I still get the same error.
Cheers
I have the same problem and I have also deleted the cache. On top of that, I also get lines where I have imported a class from either another project or a jar file that are showing an error, although when I compile it, it compiles without error. The margin on the right that displays the errors is showing many errors also.



I've also noticed that code completion isn't working for these jar files that are in my library. I've tried re-creating the library for these jar files, but I am still getting the same error marking. I believe this is related to the same problem that DarVar and alan314 are experiencing.



Thanks,

Larry
Peter B. West
2009-01-27 11:21:18 UTC
Permalink
Alan,

Is this a free-form project?

Peter
Post by llemonswork
Post by alan314
Hi Peter,
I have removed the cache dir from
D:\Documents and Settings\alan\.netbeans\6.5\var
But I still get the same error.
Cheers
I have the same problem and I have also deleted the cache. On top of that, I also get lines where I have imported a class from either another project or a jar file that are showing an error, although when I compile it, it compiles without error. The margin on the right that displays the errors is showing many errors also.
I've also noticed that code completion isn't working for these jar files that are in my library. I've tried re-creating the library for these jar files, but I am still getting the same error marking. I believe this is related to the same problem that DarVar and alan314 are experiencing.
Thanks,
Larry
--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/folio.html>
r.v.platonov
2009-01-27 23:45:52 UTC
Permalink
Hi

I have the same problem in freeform java project.

Actually in freeform java project from icefaces sources:

tag: 1.8.0-DR2

http://anonsvn.icefaces.org/repo/icefaces/tags/icefaces-1.8.0-DR2/icefaces/

subproject: icefaces (directory core)

java classes: LifecycleExecutor, SwfLifecycleExecutor



After any modification and save this classes is not fired as error, but after some manipulations with other classes (compilation, opening other files etc.) this 2 java classes fired as error again...



It's a bit of irritate.
patrickb02
2009-01-28 21:29:51 UTC
Permalink
I've had the same issue. The following fix worked to resolve it on my NetBeans 6.5 project. Let's say the problem file was Problem.java



1. Make a new class in the same package and call it a different name such as Fixed.java

2. Copy and paste all the content from Problem.java file to the newly created Fixed.java file

3. Close NeatBeans

4. Go into the folder that contains two files

5. Delete the Problem.java file and open Fixed.java in Wordpad and change the class name and constructor names to the ones used in Problem.java (assuming you changed them when you copied and pasted in step 2)

6. Close the editior and change the file name to Problem.java

7. Open up NeatBeans and the issue should be fixed (it worked on mine)
patrickb02
2009-01-28 22:07:29 UTC
Permalink
Also, make sure that the package declaration in the problem java file matches the folder name that NetBeans stores it in EXACTLY. I had this error once too and I capitalized a letter in the package declaration that was not capitalized in the folder name that NetBeans stored the java file.



Hope this helps.
alan314
2009-02-05 13:57:55 UTC
Permalink
Hi Patrick,



I tried what you suggested and it worked on the first file i tried. I went to do a second file but it never worked. Even worse the same error came back on the first file.



Surley this must be a netbeans bug.



The project type is:- Java Project with existing Sources

Loading...