Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8689

bin/solr.cmd does not start with recent Verona builds of Java 9 because of version parsing issue


    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.5, 6.0
    • Fix Version/s: 6.6.1, 7.0, 7.1, 8.0
    • Component/s: scripts and tools
    • Labels:
    • Environment:

      Windows 7


      At least on Windows, Solr 5.5 does not start with the shell script using a Verona-Java-9 JDK:

      JAVA_HOME = C:\Program Files\Java\jdk-9
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+105-2016-02-11-003336.javare.4433.nc)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+105-2016-02-11-003336.javare.4433.nc, mixed mode)
      C:\Users\Uwe Schindler\Desktop\solr-5.5.0\bin>solr start
      ERROR: Java 1.7 or later is required to run Solr. Current Java version is: 9-ea

      I don't know if this is better with Linux, but I assume the version parsing is broken (e.g., String#startsWith, interpret as floating point number,...)

      We should fix this before Java 9 gets released! The version numbering scheme changed completely: http://openjdk.java.net/jeps/223


        1. SOLR-8689.patch
          4 kB
          Uwe Schindler
        2. SOLR-8689.patch
          4 kB
          Uwe Schindler
        3. SOLR-8689.patch
          4 kB
          Uwe Schindler
        4. SOLR-8689.patch
          4 kB
          Uwe Schindler
        5. SOLR-8689.patch
          5 kB
          Uwe Schindler

          Issue Links



              • Assignee:
                thetaphi Uwe Schindler
                thetaphi Uwe Schindler
              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created: