diff --git a/native-maven-plugin/src/main/java/org/graalvm/buildtools/utils/NativeImageConfigurationUtils.java b/native-maven-plugin/src/main/java/org/graalvm/buildtools/utils/NativeImageConfigurationUtils.java index de6cf262e..2dadfedc3 100644 --- a/native-maven-plugin/src/main/java/org/graalvm/buildtools/utils/NativeImageConfigurationUtils.java +++ b/native-maven-plugin/src/main/java/org/graalvm/buildtools/utils/NativeImageConfigurationUtils.java @@ -84,14 +84,15 @@ public static Path getJavaHomeNativeImage(String javaHomeVariable, Boolean failF throw new MojoExecutionException("Determining GraalVM installation failed with message: " + e.getMessage()); } } else if (failFast) { - throw new MojoExecutionException("'" + GU_EXE + "' tool was not found. This probably means that JDK at is not a GraalVM distribution."); + throw new MojoExecutionException("'" + GU_EXE + "' tool was not found in your " + javaHomeVariable + "." + + "This probably means that the JDK at '" + graalHomePath + "' is not a GraalVM distribution."); } } if (!Files.exists(nativeImageExe)) { if (failFast) { throw new RuntimeException("native-image is not installed in your " + javaHomeVariable + "." + - "This probably means that JDK at is not a GraalVM distribution."); + "This probably means that the JDK at '" + graalHomePath + "' is not a GraalVM distribution."); } else { return null; }