Skip to content
Advertisement

JavaFX Maven Exception in Application start method

So I’ve been stuck with this problem for a few days now. I found and read a lot of posts here on stackoverflow and other sites, but none of the solutions worked for me. I have a problem with my JavaFX in my maven project. I use java 15 and JavaFX 15.0.1. Here are files that I have in my project: The pom.xml file:

JavaScript

Here is my Main.java class:

JavaScript

Here is the view.fxml file:

JavaScript

Here is the message that pops out when I try to compile my code:

JavaScript

Most post that I saw with that issue were resolved by changing the directory in getResource() method.I tried that and many other solutions as you can probably see in pom file. I ask you for help in resolving this problem as I have no more ideas on what to do. Any help will be appreciated. Thank you for helping in advance.

Advertisement

Answer

Thanks to a comment from @JoséPereda I found the solution to my problem. The issue was missing JavaFX Maven plugin and missing VM arguments.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement