The project require Java 17 since Spring Boot 3 does, did you use a Java 17 JDK? The bug is reproducible with compileJava and without the id 'org.graalvm.buildtools.native' version '0.9.14' plugin, so the issue in unrelated to nativeCompile.