geronimo-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/GERONIMO-5365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124691#comment-13124691
] 

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
JRE_HOME=%JAVA_HOME%\jre) else set JRE_HOME=%JAVA_HOME%

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
JRE_HOME="%JAVA_HOME%\jre") else set JRE_HOME=%JAVA_HOME%

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: https://issues.apache.org/jira/browse/GERONIMO-5365
>             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
error:
> > \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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message