ant java jar classpath problem -


<target name="results">     <echo message="calculating qi" />        <java jar="jmt.jar" fork="true" failonerror="true" maxmemory="1024m" classpath="jmt/jmt">         <arg value="-name:kis"/>         <arg value="-results:console"/>         <arg value="../alljavas.jar"/>     </java> </target> 

i want folder tmp run jar file in folder jmt/jmt. must run inside jmt/jmt folder becouse of dependencies files.

i can run <java jar="jmt/jmt/jmt.jar" dependencies files not ok. try use classpath not working. doing wrong?

use dir="jmt/jmt" attribute specify folder launch java process in, , use jar="jmt/jmt/jmt.jar" specify jar. don't need classpath attribute @ all.

see http://ant.apache.org/manual/tasks/java.html


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -