File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Ant succeeds, eclipse errors. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Ant succeeds, eclipse errors." Watch "Ant succeeds, eclipse errors." New topic

Ant succeeds, eclipse errors.

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi guys : I have an ant project which succeeded , however, there are "red" marks on some classes.
I've tried "refresh", but to no avail. The strangest part of it all is the fact that the errors are on an imported class (i.e. the import cannot be resolved) , which eclipse clearly recognizes (that is, i can hold the "control/function" and click on the class and see the source code !

Any idea how to straighten out eclipse so that its in sync with the successfull ANT build ?
Peter Johnson

Joined: May 14, 2008
Posts: 5772

Try adding the jar file containing the imported class to the Libraries tab on the Java Build Path for the project.

JBoss In Action
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
I ran a clean and it fixed it . duh.
I agree. Here's the link:
subject: Ant succeeds, eclipse errors.
Similar Threads
Eclipse 2.0.2 - changing default compiler
Eclipse insists on parsing my "raw" code
Debugging MDBs
How do you turn on "Verbose" option for Ant in Eclipse plugin?
Ant's classpath vs Eclipse's classpath