java - Trouble with ant compiler -


today using fedora 21 , installed ant compiler, when trying test, issue comes.

[mhernandez@localhost practica1]$ ant test  buildfile: /home/mhernandez/estructuras de datos/practica1/build.xml    compile.practica1:    practica1.jar:    test:    build failed  /home/mhernandez/estructuras de datos/practica1/build.xml:63: problem: failed create task or type junit  cause: class org.apache.tools.ant.taskdefs.optional.junit.junittask not found.          looks 1 of ant's optional components.  action: check appropriate optional jar exists in          -/usr/share/ant/lib          -/home/mhernandez/.ant/lib          -a directory added on command line -lib argument    not panic, common problem.  commonest cause missing jar.    not bug; configuration problem      total time: 0 seconds

the problem don't know how put missing jar in folder. download .zip ant.apache.org , have jars, want put them in correct folder.

probably have installed ant using yum , there jar missing. missing caused either of not updating repository or downloading problem.

better may download archived file of ant. extract , place location of pc. set ant_home manually -

exprot ant_home = /path/where/extracted/archived/placed export path = $ant_home/bin:$path   

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -