-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fatal Exception when executing javafx:run #21
Comments
The error message indicates that the JVM being used is still Java 8, because the |
It does appear that maven is using Java 8 rather than Java 11; however, my IDE's settings show that maven is using Java 11. |
As explained here: https://openjfx.io/openjfx-docs/#IDE-Intellij, Maven sections, if you run from your IDE, the plugin might pick the Java_Home it is using (for instance IntelliJ runs on JDK 1.8), so you can add this to the plugin:
Anyway, this shouldn't be necessary, if the project has SDK and language level set to 11, the platform sdk is 11, or if you run from a terminal with Java_Home set to 11. If none of that works, please detail your IDE and OS versions. |
Adding the configuration worked for me. Thank you very much! |
For those who don't want to spoil P.S. It's rather confusing that OpenJFX ignores IDE SDK settings and uses JRE from path env variable instead. |
@mkpaz If you think this can be improved, please file a new issue. |
Hello! I've been attempting to add the JavaFX plugin and dependencies to a project I've been working on; however, whenever I run my program, I am faced with a fatal error that prevents the JVM from starting:
The full log is available here. I'm using Java 11.0.2 and javafx-maven-plugin 0.0.2.
The text was updated successfully, but these errors were encountered: