providence
providence

Reputation: 29463

Eclipse highlights everything as an error when building with ant

I am using ant to do builds and outputting to the same file that eclipse outputs .class files into so that I can test easily using the eclipse console. However, once I do this eclipse says pretty much every line of my code is an error as it cannot 'resolve x to a type'. Does anyone know of a way to fix this? Refreshing the project doesn't seem to help..

Upvotes: 0

Views: 400

Answers (1)

Konstantin Komissarchik
Konstantin Komissarchik

Reputation: 29139

Do a refresh followed by clean build in eclipse. If it doesn't take the first time, do those steps once more.

I would not recommend having Eclipse and ant output to the same directory.

Upvotes: 2

Related Questions