Ant: Throwing error on executing run command | Selenium Forum
M
Posted on 15/11/2015
Hello,


After compiling, if I give command like ant run, its giving the below error.

[javac] D:\SeleniumPractice\Module9\build.xml:67: warning: 'includeantruntim
e' was not set, defaulting to build.sysclasspath=last; set to false for repeatab
le builds
[javac] Compiling 5 source files to D:\SeleniumPractice\Module9\build

run:

BUILD FAILED
D:\SeleniumPractice\Module9\build.xml:77: No suites, classes, methods or jar fil
e was specified.

Total time: 2 seconds

D:\SeleniumPractice\Module9>

M
Replied on 15/11/2015

[quote:1oxegpg4]D:\SeleniumPractice\Module9\build.xml:67: warning: 'includeantruntim
e' was not set, defaulting to build.sysclasspath=last; set to false for repeatab
le builds[/quote:1oxegpg4]

Simply set includeantruntime="false":

<javac includeantruntime="false" ...>...</javac>