Closed szachmati closed 2 years ago
Hello, Helidon 3 does not (yet) support GraalVM 22.3, please use 21.x We are now working on supporting it: https://github.com/helidon-io/helidon/pull/5308
There are multiple issues that you would encounter - one of them is the module accessibility, then we use --initialize-at-build-time
by default.
To fix your problem, you can add --add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.configure=ALL-UNNAMED
to native image arguments
I will close this issue, as the version you use is not supported now. When we release next version of 3.x, 22.3.0 will be the minimal required version.
Hi @tomas-langer sorry for so late response, I forgot to answer. In case someone else occurs such error here is workaround.
mvn clean package -DskipTests
and after creating jar file in target
native-image -jar target/app.jar
now it works 😄
Regards
Native executable build on Windows doesn't work with JPA
Environment Details
Problem Description
Hello, I created Helidon MP application for CRUD functionality using JPA 3.0 Jakarta integration with Hibernate. Everything works fine during standard building with
helidon dev
andmvn clean package
. The problem occurs while trying to build application as a native executable using GraalVM.Steps to reproduce:
mvn clean package -DskipTests -Pnative-image
command in x64 Native Tools Command Prompt(Windows)Output from Maven:
I also tried to build native executable with JPA for Helidon 2.5.4 from scratch(https://helidon.io/starter/2.5.4), but it didn't work for Hibernate and EclipseLink
Should this issue also be sent to GrallVM team? Regards