Getting Error running javac.exe compiler message, while using Ant in Eclipse

后端 未结 17 677
旧时难觅i
旧时难觅i 2020-12-24 13:04

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

17条回答
  •  时光说笑
    2020-12-24 13:54

    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.

提交回复
热议问题