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

Do the maven artifacts for graaljs 23.0.0 onwards require Java 17 #770

Closed
ptrthomas opened this issue Sep 28, 2023 · 3 comments
Closed

Do the maven artifacts for graaljs 23.0.0 onwards require Java 17 #770

ptrthomas opened this issue Sep 28, 2023 · 3 comments
Labels
question Further information is requested

Comments

@ptrthomas
Copy link

We use this Maven artifact: https://central.sonatype.com/artifact/org.graalvm.js/js-scriptengine

When we upgraded from 22.3.3 to 23.0.0, our JDK 11 based build failed with the below message | refer karatelabs/karate#2401

bad class file: /home/runner/.m2/repository/org/graalvm/sdk/graal-sdk/23.0.0/graal-sdk-23.0.0.jar(/org/graalvm/polyglot/Value.class)
Error:      class file has wrong version 61.0, should be 55.0

And when we changed the build to use JDK 17, it worked.

Can you confirm that org.graalvm.js:js-scriptengine requires JDK 17 from version 23.0.0 onwards ? The last time a JDK version compatibility changed, the release notes were very clear, refer: https://github.com/oracle/graaljs/blob/master/CHANGELOG.md#version-2210 and quote Graal.js now requires Java 11+ and no longer supports Java 8. - but there is no such mention for 23.0.0

@oubidar-Abderrahim
Copy link
Member

Sorry for this late response, but yes. GraalVM 23's minimum supported JDK is 17

@oubidar-Abderrahim oubidar-Abderrahim added the question Further information is requested label Dec 6, 2023
@ptrthomas
Copy link
Author

@oubidar-Abderrahim thanks, this is good to know

@kiwi1969
Copy link

kiwi1969 commented Jun 4, 2024

It would be great to know which releases run of each version of OpenJDK. From reading this I can use 23.0.0 with JDK17, but uncertain about all newer revisions

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

No branches or pull requests

3 participants