corretto / corretto-docker

Dockerfiles for Amazon Corretto Official images.
https://hub.docker.com/_/amazoncorretto
MIT No Attribution
152 stars 63 forks source link

Cannot use JVMCI compiler: No JVMCI compiler found #213

Closed nicofari closed 1 month ago

nicofari commented 1 month ago

Thank you for taking the time to help improve Corretto.

If your issue is specific to the Amazon Linux image these containers are built upon, please, consider opening an issue on the Amazon Linux Docker github repository

If your issue is specific to Corretto docker images, then you are in the right place. Please proceed with the following.

Describe the bug

Launching a jar with options for using JVMCI compiler results in an error

To Reproduce

build an image from corretto:21

then log in to a bash and run: java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -Dlogback.configurationFile=logback-$ENV_NAME.xml -jar any.jar

Source code of the jar is not relevant

Got the error: Cannot use JVMCI compiler: No JVMCI compiler found

Expected behavior

Should run the submitted jar

Screenshots

If applicable, add screenshots to help explain your problem.

Platform information

Repository: [e.g. dockerhub, ECR]
Image tag: [e.g. 8-al2-full, latest]

Additional context

Add any other context about the problem here.

Thanks a lot!

nicofari commented 1 month ago

Never mind just discovered this:

https://github.com/dwijnand/sbt-extras/pull/332

Hope this could help other people

thanks