gluonhq / gluonfx-gradle-plugin

Plugin that simplifies using Gluon Client for Java/JavaFX gradle projects
BSD 3-Clause "New" or "Revised" License
100 stars 22 forks source link

NativeRunAgentTask sets an invalid path for the java executable #185

Closed TomB654 closed 6 months ago

TomB654 commented 9 months ago

Trying to run the nativeRunAgent task gives me this failure message:

RunAgent failure: org.gradle.api.InvalidUserDataException: The configured executable does not exist (<path to my GraalVM JDK installation>\bin\java)

Using a debugger, I found what's likely causing this issue: https://github.com/gluonhq/gluonfx-gradle-plugin/blob/c8223742a2b0283741146558e4350cd9463f9929/src/main/java/com/gluonhq/gradle/tasks/NativeRunAgentTask.java#L107-L108

This sets the path for the java executable to a String ending in \bin\java, but it should be ending in \bin\java.exe. As a result, the exception above is thrown later.