search

Home  >  Q&A  >  body text

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

Jesse·BryantJesse·Bryant1340 days ago927

reply all(1)I'll reply

  • Jesse·Bryant

    Jesse·Bryant2021-05-05 13:50:38

    Found the reason

    reply
    0
  • Cancelreply