Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.10.2
-
WINDOWS 8.1
Description
Reproduce:
- Install JRE8 from www.java.com (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 line
Solution
Quoting the lines where %JAVA% is printed, e.g. instead of
@echo Using Java: %JAVA%
then use
@echo "Using Java: %JAVA%"
This is needed several places.
Attachments
Attachments
Issue Links
- relates to
-
SOLR-7047 solr.cmd fails if Solr installation path contains parenthesis
- Closed