1

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.

boris
  • 31
  • 5
  • Please check that the environment variable JAVA_HOME has been set. Do a Google search if you are unsure of how to set the variable. – Eric Jul 07 '22 at 04:57

1 Answers1

1

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.

boris
  • 31
  • 5