Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java is not supported real? #13960

Open
dabao1990 opened this issue Oct 28, 2024 · 2 comments
Open

Java is not supported real? #13960

dabao1990 opened this issue Oct 28, 2024 · 2 comments
Labels

Comments

@dabao1990
Copy link

Description

spack install --overwrite --keep-stage --no-checksum [email protected]

[root@localhost spack-src]#java -cp /home/spack/opt/spack/linux-debian10-aarch64/gCc-8.3.0/lucene-10.0.0-kw6uqebm5b22mtktztcepwn4kelxmj7d/analysis/common/lucene-analy*-common-10.0.0.jar:/home/spa
ck/opt/spack/linux-debian10-aarch64/gcc-8.3.0/lucene-10.0.0-kw6ugebm5b22mtktztcepwn4kelxm 7d/core/lucene-core-10.0.0.ar:/home/spack/opt/spack/linux-debian10 aarch64/gcc-8.3.0/lucene-10.0.0-kw6uq
ebm5b22mtktztcepwn4kelxmj7d/demo/lucene-demo-10.0.0.jar:/home/spack/opt/spack/linux-debian10-aarch64/gcc-8.3.0/lucene-10.0.0-kw6uqebm5b22mtktztcepwn4kelxmj7d/queryparser/lucene-queryparser-10.0.0
jar org apache.lucene.demo.IndexFiles -docs lucene_index -index index
Error: LinkageError occurred while loading main class org.apache.lucene.demo.IndexFiles
java.Lang.UnsupportedclassVersionError: org/apache/lucene/demo/IndexFiles has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Jav
a Runtime only recognizes class file versions up to 55.0
[root@localhost spack-src]#

I use spack to install and run the following command. This error is reported. This is because the running environment is too low. However, when I try to install openjdk@22 and 30, the following problems are reported:

Version and environment details

No response

@benwtrent
Copy link
Member

Java 21 is the required minimum for Lucene 10.

You mentioned additional failures after installing java 22, could you provide that information?

@dabao1990
Copy link
Author

Java 21 is the required minimum for Lucene 10.

You mentioned additional failures after installing java 22, could you provide that information?

After cleaning up the environment, I retested it and found that the problem was solved using [email protected]. I'm off that question.

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

No branches or pull requests

2 participants