Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 971
boris Avatar asked Oct 26 '25 12:10

boris


1 Answers

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.

like image 79
boris Avatar answered Oct 29 '25 03:10

boris