[Webtest] [webtest][JIRA] Created: (WT-165) webtest.bat problem with blanks in JAVA_HOME
Denis N. Antonioli (JIRA)
webtest@lists.canoo.com
Wed, 15 Mar 2006 16:44:48 +0100 (CET)
webtest.bat problem with blanks in JAVA_HOME
--------------------------------------------
Key: WT-165
URL: http://webtest-community.canoo.com/jira/browse/WT-165
Project: WebTest
Type: Bug
Versions: 2.0
Reporter: Denis N. Antonioli
Assigned to: Denis N. Antonioli
Fix For: future versions
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira