openjfx / javafx-maven-plugin

Maven plugin to run JavaFX 11+ applications
Apache License 2.0
371 stars 59 forks source link

Use Maven's Java for executable #173

Open magno32 opened 1 year ago

magno32 commented 1 year ago

From #21, when running inside an IDE (IntelliJ in my case), the plugin ignores whatever JDK we have selected for the project.

This can be solved in the plugin configuration with:

<configuration>
   ...
    <executable>${java.home}/bin/java</executable>
   ...
</configuration>

This feels like it should be the default behavior.

furai commented 1 year ago

I've just came across same problem. Had to use the workaround above to be able to run the executable. Else it was using different java version than the one set in $JAVA_HOME.

Maze-fr commented 1 month ago

You saved my life !