On 15 mars 06, at 00:12, Samuel B. Quiring wrote:

I am working on WindowsXP, Looking at "Samples to give you a jump start" and I am getting the error (shown in red):
 
> ..\build\bin\webtest.bat -buildfile cayuse.xml
"java.exe" -Xms64M -Xmx256M -cp "C:\download\canoo\build\bin\..\lib\runtime\ant-launcher.jar" -Dant.library.dir="C:\download\canoo\build\bin\..\lib\runtime" org.apache.tools.ant.launch.Launcher -nouserlib -lib "C:\download\canoo\build\bin\..\lib\build;C:\download\canoo\build\bin\..\lib\build\clover.jar" -buildfile cayuse.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
Buildfile: cayuse.xml
Trying to override old definition of task sleep
. . .
 
> echo %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_05
 
There is a tools.jar in %JAVA_HOME%\lib\
 
Any ideas?

webtest.bat looks for %JAVA_HOME%\bin\java.exe and, if it doesn't exist, ignore the value of JAVA_HOME.
It then proceeds with calling the first java that XP finds on its %path%.

From the look of your message, webtest.bat thinks that %JAVA_HOME%\bin\java.exe doesn't exist, otherwise we would see:
> ..\build\bin\webtest.bat -buildfile cayuse.xml
"C:\Program Files\Java\jdk1.5.0_05\bin\java.exe" -Xms64M -Xmx256M -cp "C:\download\canoo\build\bin\..\lib\runtime\ant-launcher.jar" -

XP happens to find a java in C:\Program Files\Java\jre1.5.0_05.


The question then is, why doesn't XP recognizes %JAVA_HOME%\bin\java.exe ?


Note that tools.jar isn't necessary for most webtest.

Best
dna

-- 

If Java had true garbage collection, most programs would delete themselves upon execution.

  -- Robert Sewell



Reply via email to