Home Java Run command line error in Apache Ant 1.9.9
Reply: 0

Java Run command line error in Apache Ant 1.9.9

user695
1#
user695 Published in April 23, 2018, 9:42 am

I am using ant to compile and run a java program, the program is successfully compiled but on running the desired output.txt is not generating. Is something wrong with run command?

COMPILE: ant -buildfile build.xml all

RUN: ant -buildfile build.xml run -Darg0=train_all_txt.txt -Darg1=output.txt

Code in build.xml :

<target name="run" depends="jar">
    <java jar="${BUILD}/jar/recommenderSystem.jar"  fork="true">
    <arg value="${arg0}"/>
    <arg value="${arg1}"/>
    <arg value="${arg2}"/>
    <arg value="${arg3}"/>
    <arg value="${arg4}"/>
    </java> 
</target>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.29837 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO