javafx-maven-plugin eclipse java version
Tom Eugelink
tbee at tbee.org
Fri Mar 26 07:07:36 UTC 2021
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
More information about the openjfx-dev
mailing list