- 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.
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
Quoting the lines where %JAVA% is printed, e.g. instead of
This is needed several places.