I'm trying to run Spring Boot application using GraalVM Native. After successful compilation into single file, I can easily run binary, Spring Boot starts normally, but when I trying to run it inside docker with ubuntu
image (it not contains java, but simple HelloWorld in GraalVM native works without JRE) I getting this error:
Error: No bin/java and no environment variable JAVA_HOME
I've read that I probably need to init classes at runtime instead of compile time (from: Problem with creating AWS Lambda function using Micronaut and GraalVM). But I don't know which classes should I pass to --delay-class-initialization-to-runtime
. How can I run my Spring Boot app without JRE?