Skip to content

Conversation

tporcham
Copy link

@tporcham tporcham commented Jan 9, 2025

Using a Java version below 21 results in Exception in thread "main" java.lang.NoClassDefFoundError: java/util/SequencedCollection.

SequencedCollection is available since Java version 21.

Using a Java version below 21 results in Exception in thread "main" java.lang.NoClassDefFoundError: java/util/SequencedCollection.

SequencedCollection is available since Java version 21.
@wardle
Copy link
Owner

wardle commented Jan 9, 2025

Hi. Thanks for this. The minimum Java version is 11 due to a Lucene minimum Java requirement. The penultimate release was accidentally built using JDK21 and so that uberjar did require version 21 or higher, but this was fixed in the most recent release (see bcc0df1) so the latest release should work with 11 and above. You should also find running from source code using the clojure command-line will work so long as you are on Java 11 or above. The latest Lucene (v10) requires a more up to date Java however. You can opt-in to using Lucene10 if you using JDK21 or above when running from source code e.g. clojure -M:lucene10:run --db mydb.db --serve - there is conditional compilation to handle the minor compatibility changes between Lucene 9 and 10 series.

@tporcham
Copy link
Author

tporcham commented Jan 9, 2025

Hello Mark, thanks for your swift reply!
ok, so Java 11 is the current min. required Java version. Would it make sense to state that in the Readme.md?

Thanks, Thomas

@tporcham tporcham closed this Jan 9, 2025
@tporcham tporcham deleted the patch-1 branch January 9, 2025 13:38
@wardle
Copy link
Owner

wardle commented Jan 9, 2025

Good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants