When I run my Ant build in Eclipse, I\'m getting the following error message and the Ant build fails.
Error Message: Error running javac.exe compile
I faced the same problem, and here is my advice, maybe it will help someone.
In fact, message Error running javac.exe compiler
means that something went wrong. The question is, what exactly. When Ant runs javac
task with fork="true"
flag, it doesn't print any error details. In my case, it didn't print them even after I added verbose="true"
, as suggested here. Solution was to add -verbose flag to Ant command line:
ant -verbose
After this, Ant starts printing full error messages, so you are able to fix a problem.