It is a maven goal to start a javafx application with all the native stuff setup correctly. https://openjfx.io/openjfx-docs/#maven
I have not configured an direct Eclipse run, because that is more work with defining the native librars and stuff, while I should just be able to run the maven goal. https://openjfx.io/openjfx-docs/#maven But apparently only on Java 11. I'll checkout out the plugin and see what is up. On 2021-03-26 22:12, Nir Lisker wrote:
What is "javafx:run"? If you run it from within Eclipse (the green "play" button), does it work? On Fri, Mar 26, 2021 at 10:08 AM Tom Eugelink <t...@tbee.org <mailto:t...@tbee.org>> wrote: To prevent me from going on a long search-and-rescue, I figured I'd post a small question here. I'm trying to run an application with the javafx-maven-plugin on top of JDK 15. Works fine. But the moment I do javafx:run from within Eclipse, it complains about the classfile versions: it says the compiler generated 59 (Java 15) while it can only run 55 (Java 11). I only have Java 15 JDK configured in Eclipse, running "mvn -version" from Eclipse says it uses Java 15, so that does not seem to be the problem. If I run maven with -X, the compiler plugin just above uses release/source/target 15, but javafx:run indeeds mentions release/source/target 11. The output is the same from the shell and from eclipse, however in Eclipse it is an issue. Shouldn't javafx:run using the version settings from the maven project? Why is it different between shell and eclipse? Regards, Tom