Go figure how XP parses its lines then ;-)

Thank you for the fix, it's finding it's way in the distribution right now!

Happy testing
dna

On 15 mars 06, at 16:25, Samuel B. Quiring wrote:

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.

-- 
  I always wondered about the meaning of life.   So I looked it
  up in the dictionary under "L" and there it was - the meaning
  of life. It was not what I expected. 
    -- Dogbert


Reply via email to