geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jihong Park (Commented) (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-5365) Parentheses in JAVA_HOME path prevent *.bat files from running
Date Tue, 11 Oct 2011 05:02:29 GMT


Jihong Park commented on GERONIMO-5365:

I got WASCE working by updating two batch files; "setjavaenv.bat" and "setenv.bat" - look
for the following line in both files;

if not "%JAVA_HOME%" == "" if "%JRE_HOME%" == "" if exist "%JAVA_HOME%\bin\javac.exe" (set

then add a couple of double quotes around "%JAVA_HOME%\jre"

if not "%JAVA_HOME%" == "" if "%JRE_HOME%" == "" if exist "%JAVA_HOME%\bin\javac.exe" (set

Then the server will start as expected - Win7 would require running the batch file as administrator,
so that the server process can write to "C:\Program Files (x86)\" path.

I'd imagine Geronimo would work the same way, since Geronimo is contained in WASCE distribution.
> Parentheses in JAVA_HOME path prevent *.bat files from running
> --------------------------------------------------------------
>                 Key: GERONIMO-5365
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.2
>         Environment: Microsoft Windows XP Pro + SP3, 64bit
>            Reporter: Stasa Medjedovic
>              Labels: JAVA_HOME
> I have JAVA_HOME variable set as: 
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_17
> When I try to run any of the .bat files from Geronimo bin folder I get the following
> > \Java\jdk1.6.0_17\jre) was unexpected at this time.
> I tried to quote JAVA_HOME as:
> > set JAVA_HOME="C:\Program Files (x86)\Java\jdk1.6.0_17"
> and got the same error.
> Parentheses are probably the problem ...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message