Results 1 to 1 of 1
Thread: Ant and Eclipse not working??
- 11-19-2011, 01:31 AM #1Member
- Join Date
- Nov 2011
- Rep Power
Ant and Eclipse not working??
Hey guys, I'm new to the forum, but I've found this as a pretty useful place to get ideas/solutions to various problems I have.
I've looked through the forum for solutions to my problem, but nobody seems to get the exact same situation as I have, so here goes.
I'm doing a homework assignment for my Java class, and they've told us to use Ant to build our files so we can submit them; no biggie, I've done it for the
last 10 weeks with no problems.
However, today, I compiled my code using Ant to make a preview of the finish product (our Ant code also runs checkstyle, so I can see how many
checkstyle errors come up so I can fix them). However, after running Ant, all my programs in Java have stopped working.
I can't run anything, all I get is a "Error: Could not find or load main class xxxx.java". What's weird is, if I re-import my project into Eclipse (I'm running on Eclipse by the way, sorry I didn't make that out sooner), the entire project works again...that is until I run Ant.
The code works fine in command line, but debugging it is kind of a pain in command line.
Any ideas of what's going on? My project is due next week, and it's really annoying not being able to preview the finished product.
Thanks for the feedback
- By kraigballa in forum EclipseReplies: 11Last Post: 10-08-2011, 06:13 PM
- By scrap in forum New To JavaReplies: 2Last Post: 10-29-2009, 12:47 AM
- By int80 in forum EclipseReplies: 4Last Post: 03-31-2009, 01:17 PM
- By iuna in forum EclipseReplies: 1Last Post: 03-25-2009, 09:39 PM