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

Native Image generation fails with GraalVM 22.2.0 #423

Closed
alvarosanchez opened this issue Jul 20, 2022 · 0 comments · Fixed by #427
Closed

Native Image generation fails with GraalVM 22.2.0 #423

alvarosanchez opened this issue Jul 20, 2022 · 0 comments · Fixed by #427
Labels
priority: high High priority type: bug Something isn't working
Milestone

Comments

@alvarosanchez
Copy link
Member

This was caused by oracle/graal#4468

The solution is to set the environment variable USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM=false:

  • For native-image packaging, this needs to be done in the Native Build Tools configuration in the parent POM.
  • For docker-native packaging, this needs to be done here in the Dockerfile.

Reproducer example: https://github.com/sachin-pikle/devops-yum-gvme-micronaut-hello

@alvarosanchez alvarosanchez added type: bug Something isn't working priority: high High priority labels Jul 20, 2022
@alvarosanchez alvarosanchez added this to the 3.4.0 milestone Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High priority type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant