[ https://issues.apache.org/jira/browse/CASSANDRA-15258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938879#comment-16938879 ]
A Thomas B commented on CASSANDRA-15258: ---------------------------------------- I think the issue is that the condition on cassandra-env.ps1:403 is miswritten. Just running {code:java} $env:JVM_VERSION=11 $env:JVM_VERSION.CompareTo("1.8.0"){code} returns "1" However, even when commenting out the entire condition: {code:java} if ($env:JVM_VERSION.CompareTo("1.8.0") -eq -1 -or [convert]::ToInt32($env:JVM_PATCH_VERSION) -lt 151) { echo "Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java $env:JVM_VERSION is not supported." exit }{code} but then it fails with {code:java} [0.014s][error ][logging] Error opening log file 'C:\Users\bugorskia\cassandra/logs/gc.log': No such file or directory [0.015s][error ][logging] Initialization of output 'file=C:\Users\bugorskia\cassandra/logs/gc.log' using options '(null)' failed. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. {code} so I created a folder called "logs" and then when I run it I get a Java exception: {code:java} Caused by: java.lang.IllegalAccessException: access to public member failed: jdk.internal.ref.Cleaner.clean[Ljava.lang.Object;@4097cac/invokeVirtual, from org.apache.cassandra.io.util.FileUtils (unnamed module @78a773fd) {code} which is a reoccuring theme of Cassandra failing due to the changes from Java 9 modules. > Cassandra JDK11 Windows not working > ----------------------------------- > > Key: CASSANDRA-15258 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15258 > Project: Cassandra > Issue Type: Bug > Components: Build, Local/Startup and Shutdown > Reporter: RamyaK > Priority: Urgent > Labels: windows > > I'm trying to setup Cassandra 4.0 trunk with OpenJDK11, but getting below > error on start up. > > + $content = Get-Content "$env:CASSANDRA_CONF\jvm.options" > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > + CategoryInfo : ObjectNotFound: > (D:\Stuff\save\C...onf\jvm.options:String) [Get-Content], > ItemNotFoundException > + FullyQualifiedErrorId : > PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand > Also JVM_VERSION is 11, still its showing as > Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or > newer). Java 11 is not supported. > > Please suggest. > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org