Problem with Ant Building

I get the following error when trying to build with ant

Buildfile: C:\Program Files\eclipse\workspace\xith3d\build.xml

clean:
[echo] cleaning ./classes

recompile:

setup:


compile:
        [echo] compiling source files
        [echo] javaexe: c:\javaSDK\bin\javac
       [javac] Compiling 354 source files to C:\Program Files\eclipse\workspace\xith3d\classes
BUILD FAILED: file:C:/Program Files/eclipse/workspace/xith3d/build.xml:68: Error running javac.exe compiler
Total time: 734 milliseconds

I changed the following line so that I could be sure that it finds the java compiler


  <property name="javaexe" value="c:\javaSDK\bin\javac"/>

I think I told it the exact directory to look in and yet it still gives me an error. Does anyone have any ideas? Thanks!

Hi
Instead of changing the build file (which will cause problems for you if the xith team change it) you could just set you JAVA_HOME environment variable to point to your sdk install directory

set JAVA_HOME=c:\j2sdk1.4.2_02

for example

HTH

Endolf

Or you can register the java bin directory in your system PATH.

You should be able to run java, javac and javadoc at least without needing to specify their location on the command line.

Will.