Search code examples
springspring-bootgraalvmgraalvm-native-imagespring-native

Cannot query the value of property 'javaLauncher' because it has no value available


Hello Guys I am new to spring native.When I try ./gradlew compileNative I get the error `* What went wrong: Execution failed for task ':nativeCompile'.

Cannot query the value of property 'javaLauncher' because it has no value available.`

I have installed graalvm and installed native-image and made the graalvm default on my machine.

Here is the pastbin link to additional logs.The bootBuildImage works fine.

I don't know whats wrong now.

OS:Arch Linux.


Solution

  • Guys the error was caused by an unset JAVA_HOME variable.I used to think that archlinux-java set does that for you by default.

    Thanks Eric for the info.