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 <[email protected]> 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 > >
