10 messages in com.canoo.lists.webtestRe: [Webtest] unable to find tools.jar?
FromSent OnAttachments
Samuel B. Quiring14 Mar 2006 15:12 
Denis N. Antonioli15 Mar 2006 00:45 
Paul King15 Mar 2006 05:22 
Denis N. Antonioli15 Mar 2006 07:14.bat
Samuel B. Quiring15 Mar 2006 07:25 
Denis N. Antonioli15 Mar 2006 07:45 
Samuel B. Quiring15 Mar 2006 08:55 
Samuel B. Quiring15 Mar 2006 09:36 
Marc Guillemot15 Mar 2006 23:34 
Marc Guillemot15 Mar 2006 23:36 
Subject:Re: [Webtest] unable to find tools.jar?
From:Denis N. Antonioli (deni@canoo.com)
Date:03/15/2006 12:45:20 AM
List:com.canoo.lists.webtest

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