lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Collins (JIRA)" <>
Subject [jira] [Commented] (SOLR-6693) Start script for windows fails with 32bit JRE
Date Wed, 05 Nov 2014 09:13:34 GMT


Daniel Collins commented on SOLR-6693:

Yeah, I was half-joking and half-serious when I suggested JVM re-install.
Windows JVM installs always seem somewhat prone to needing a re-install from time to time,
The {{C:\Windows\System32\java.exe}} always seems to favour the "last" JVM you installed as
well, so if you have (for example) a Java 7 and Java 8 JVM installed, and then you update
your Java 7 JVM, that becomes the new "default". You have to re-update Java 8 to update that
magic version of {{java.exe}}.

It always makes me glad to get back to Linux every time I have to use Windows, at least there
applications get installed into directories, if they are on your path (or I explicitly run
them), they get used, if they aren't, they don't.  It makes so much more sense that way :-)

> Start script for windows fails with 32bit JRE
> ---------------------------------------------
>                 Key: SOLR-6693
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 4.10.2
>         Environment: WINDOWS 8.1
>            Reporter: Jan H√łydahl
>              Labels: bin\solr.cmd
>             Fix For: 5.0, Trunk
> *Reproduce:*
> # Install JRE8 from (typically {{C:\Program Files (x86)\Java\jre1.8.0_25}})
> # Run the command {{bin\solr start -V}}
> The result is:
> {{\Java\jre1.8.0_25\bin\java was unexpected at this time.}}
> *Reason*
> This comes from bad quoting of the {{%SOLR%}} variable. I think it's because of the parenthesis
that it freaks out. I think the same would apply for a 32-bit JDK because of the (x86) in
the path, but I have not tested.
> Tip: You can remove the line {{@ECHO OFF}} at the top to see exactly which is the offending
> *Solution*
> Quoting the lines where %JAVA% is printed, e.g. instead of
> {noformat}
>   @echo Using Java: %JAVA%
> {noformat}
> then use
> {noformat}
>   @echo "Using Java: %JAVA%"
> {noformat}
> This is needed several places.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message