开发者

Eclipse highlights everything as an error when building with ant

开发者 https://www.devze.com 2023-02-16 04:22 出处:网络
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

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 t开发者_开发百科o fix this? Refreshing the project doesn't seem to help..


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消