geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Cole (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-5365) Parentheses in JAVA_HOME path prevent *.bat files from running
Date Tue, 02 Oct 2012 22:17:07 GMT


Steven Cole commented on GERONIMO-5365:

I've come to this issue from issues with the Jenkins project elsewhere, and would just like
to add: we've had this problem... sort of. (Not with Geronimo specifically, and not with setting
JAVA_HOME. We're actually adding to the PATH environment variables.)

The Jihong Park fix has what I believe to be an error, which may be why Serge Baranov is still
seeing the issue.

The Jihong Park fix has, as new text:
    set JRE_HOME="%JAVA_HOME%\jre"

Compare this to what you see in the Microsoft Visual Studio batch files that do environment
variable setup, and you'll see that the proper syntax is actually
    set "JRE_HOME=%JAVA_HOME%\jre"

That's right: the quotes need to be around the whole assignment, otherwise they get embedded
within the environment variable.

So I'd give that a shot. 
> 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
>            Assignee:
>              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
For more information on JIRA, see:

View raw message