I would like to integrate Spring Boot with JavaFX in IntelliJ environment. I've found this article about it.
But it isn't working for me. I have done these steps:
- Generate plain project using spring initializer.
- Import project (Maven project) in IntelliJ
- Now I can run spring boot application, and it works well.
- Make changes from the article.
- Run Spring application action, and then getting errors:
Errors:
Error:(7, 26) java: package javafX.application does not exist
Error:(8, 19) java: package javafx.fxml does not exist
Error:(9, 20) java: package javafx.scene does not exist
Error:(10, 20) java: package javafx.scene does not exist
Error:(11, 20) java: package javafx.stage does not exist
Error:(14, 37) java: cannot find symbol symbol: class Application
IntelliJ find sources of JavaFX packages. I can look into JavaFX code. But why cannot compile and run?