cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Knighton (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-12702) Windows Installer: Incorrectly checks for Java version later than 1.8.0_40
Date Fri, 23 Sep 2016 20:10:20 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-12702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joel Knighton resolved CASSANDRA-12702.
---------------------------------------
    Resolution: Duplicate

> Windows Installer: Incorrectly checks for Java version later than 1.8.0_40
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12702
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12702
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>         Environment: Windows 8, Java version 1.8.0_101
>            Reporter: Josh Hemen
>            Priority: Minor
>              Labels: easyfix, windows
>             Fix For: 3.7
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message