javac invalid flag

I'm using IDEA 5.1.2. I've never had a problem building before, but now I've started getting an error every time I try to build.

The error is:
Error: javac: invalid flag: /usr/local/dev/projectX/src/server/src/SOpen/spm/dao/.

The path listed is one of my directories containing java files. I can't figure out what is causing this problem. I don't have any problems building with ant. Any help would be appreciated.


1 comment
Comment actions Permalink

I've found the problem. There was a file beginning with .# and ending with .java in the directory that was causing the problem. Similar file names seem to end with .java.1.x, so I'm not sure how that file ended up named like that.


Please sign in to leave a comment.