The moose likes Ant, Maven and Other Build Tools and the fly likes In Eclipse 3.0, Ant not finding javac Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "In Eclipse 3.0, Ant not finding javac" Watch "In Eclipse 3.0, Ant not finding javac" New topic
Author

In Eclipse 3.0, Ant not finding javac

Bob Peterson
Ranch Hand

Joined: Jul 30, 2004
Posts: 47
I'm assuming this is some kind of environmental issue but I can't figure out what. I thought I had set the verbose to on/yes as well but am not getting anything. The output is simply:

Buildfile: C:\eclipse\workspace\MyProject\build.xml
compile:
compile_tests:
test:
[junit] TEST com.foo.foo2.foo3.AllTests FAILED
BUILD SUCCESSFUL
Total time: 2 seconds

The problem in the junit task is that it's not finding the AllTests class because ant is not building it. I don't have a lot of experience with either Eclipse or Ant, but I have another project in Eclipse with roughly the same build.xml (I've been given both these projects from an external source, they come with the build.xml, directory structure, source stubs, etc.) and it is compiling fine. I notice that in the one that compiles, after the compile: line there is a [javac] line which indicates to me it is at least running the javac. It looks like the problem one is not finding or running javac.

Any ideas?
 
 
subject: In Eclipse 3.0, Ant not finding javac
 
Threads others viewed
Ant 1.7 + Junit 4 problems
Ant Build file HELP!!-URGENT
eclipse and and junit
Using junit with ant
Running batches of unit tests in a hierarchy with non-unit test tests
IntelliJ Java IDE