IDEA unable to run JavaFX Maven project

Answered

I study Java programming in the university and the way it works, is that I receive a stub of the program(maven based) to go with, and during 14 weeks not once have I had any issues with IDEA until JavaFX. Program compiles and I can run it from terminal or from Maven -> Plugins -> javafx -> javafx:run, but if I try to run it inside IDE alt+shift+f10, I get several errors and  they make zero sense to me. After two days of struggle I cave in yesterday evening, installed NetBeans and it run, out of the box! I'm just super bummed about this as I absolutely love IDEA and going back to NB now feels like something Michael J. Fox forgot to take with him back to the 80's! =/

1
4 comments

Please refer to https://openjfx.io/openjfx-docs/#IDE-Intellij and https://www.jetbrains.com/help/idea/javafx.html .

Pay attention to the VM Options in the Run/Debug configuration.

1
Avatar
Permanently deleted user

Thank you, Serge, for a quick reply! I found something similar to this earlier but I guess I kind of refused to believe that I need to do the config with every single task(as there are plenty on this course)! Is there any way to set the VM options load as a default?

0

Yes, you can edit the Template configuration.

0
Avatar
Permanently deleted user

Thank you so much , Serge! No one from the Uni was able to crack this and we even have a TMC plugin(created by our uni) for IntelliJ so students can use it!!! I now created a macro for the modules, so I can just add it for each and every task provided by university.

1

Please sign in to leave a comment.