Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12702

Windows Installer: Incorrectly checks for Java version later than 1.8.0_40

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Duplicate
    • Fix Version/s: 3.7
    • Component/s: Packaging
    • Labels:
    • Environment:

      Windows 8, Java version 1.8.0_101

    • Severity:
      Low

      Description

      A configuration script incorrectly checks the installed version of Java against version 1.8.0_40, causing cassadra not to run. The file affected is "apache-cassandra-3.7-bin.tar.gz", downloaded from the Cassandra download page. The error is in the file appache-cassandra-3.7/conf/cassandra-env.ps1 at line 416. The problem is with this check: $env:JVM_VERSION.CompareTo("1.8.0_40") -eq -1. It is comparing the versions as strings and not as numbers. This works up to java update 99, be fails after. It should instead compare each section of the version as numbers, perhaps individually.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jphemen Josh Hemen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: