<project name="Testing" default="dist" basedir=".">
<description>
simple example build file
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/Testing-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
BUILD FAILED
C:\Documents and Settings\xxxxxxxx\test\Testing\build.xml:20: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"
Is their a certain command that I can put in the build.xml that allows me to set the path to the compiler,...etc
Thanks
BUILD FAILED
C:\Documents and Settings\xxxxxxxxx\test\Testing\build.xml:20: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"
What is this com.... class path issue am I suppose to include an external tools.jar file?
Thanks for any help I would really like to get this to work.
Edit: do you have the jdk? It's currently set to the jre.
read?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
When I run my java application in eclipses by clicking the run button.
It compiles and runs fine. But when I create a build.xml and click run as ant ,...etc it gives me the above error.
All I did is create a build.xml file and right clicked on ant build.
Then I got those errors
Is their something I am missing with creating ant scripts. I thought all you have to do is create the .xml and execute it is their some settings that need to be setup first?
It is currently set to "C:\Program Files\Java\jre6"
Need I use colours?
Edit: I pointed you at the required knowledge two years ago, and even now you're still missing the blatant obvious. You should really practice problem solving since your entire post history shows you can't.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]