You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Slava <vo...@networklab.ca> on 2022/09/26 03:39:31 UTC

Cassandra java > 15

Hello Everyone, 
I am trying build RPM for fedora 36  with Java version 17 ( system ) and running into error 


Buildfile: /builddir/build/BUILD/apache-cassandra-4.0.6-src/build.xml
Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

BUILD FAILED
/builddir/build/BUILD/apache-cassandra-4.0.6-src/build.xml:158: Unable to create javax script engine for javascript

Total time: 1 second
error: Bad exit status from /var/tmp/rpm-tmp.w0JavE (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.w0JavE (%build)


Any help thank you.


Volga629

Re: Cassandra java > 15

Posted by Erick Ramirez <er...@apache.org>.
Correction -- It has been brought to my attention that there are no plans
for 5.0 yet so Java 17 support might be added sooner in the next 4.x
release if it's ready. Cheers!


> There is no support for Java 17 yet. The plan is to add it in Cassandra
> 5.0 [1].
>
> [1] https://issues.apache.org/jira/browse/CASSANDRA-16895
>

Re: Cassandra java > 15

Posted by Erick Ramirez <er...@apache.org>.
There is no support for Java 17 yet. The plan is to add it in Cassandra 5.0
[1]. By default, builds are done with Java 8. You can build with Java 11 by
setting the flags documented on the site [2]. Cheers!

[1] https://issues.apache.org/jira/browse/CASSANDRA-16895
[2] https://cassandra.apache.org/_/development/ide.html