An error occurs and it can be compiled, but the following error message appears when running. Why is this?
The main method cannot be found in the class method, please define the main method as: public static void main(String[] args) Otherwise the JavaFX application class must extend javafx.application.Application