The problem is the way the webtest.bat file is constructed.  Here are the two
problem lines:
 
set JAVA_CMD="%JAVA_HOME%\bin\java.exe"
if exist "%JAVA_CMD%" goto hasJavaHome
Here's how these two lines look when they are executed:

...>set JAVA_CMD="C:\Program Files\Java\jdk1.5.0_05\bin\java.exe"
...>if exist ""C:\Program Files\Java\jdk1.5.0_05\bin\java.exe"" goto hasJavaHome
 
The double quotes at the beginning of the path in the if exist pretty much make the path
meaningless.  I changed the if exist statement so it does not use quotes:
 
set JAVA_CMD="%JAVA_HOME%\bin\java.exe"
if exist %JAVA_CMD% goto hasJavaHome
and it worked great for my case.
 
 
----- Original Message -----
From: "Paul King" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 15, 2006 5:23 AM
Subject: Re: [Webtest] unable to find tools.jar?

> Denis N. Antonioli wrote:
>> The question then is, why doesn't XP recognizes %JAVA_HOME%\bin\java.exe ?
>
> Possibly it is the space in the path. If you can re-install to a directory
> without a space or make a temporary drive using subst and let us know the
> result that would be great. If you type:
>
>> subst Y: "C:\Program Files"      (where Y: is a free drive letter)
>> set JAVA_HOME=Y:\Java\jdk1.5.0_05
>
> and re-run and it works, then it means we have to fix our batch file
> to better escape the path.
>
> Cheers, Paul.
> _______________________________________________
> WebTest mailing list
>
[email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>

Reply via email to