Error: Main method not found in class OOP.Animal, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application code example

Example: scala Error: Main method not found in class please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application

/*
  This happened to me because an the object that extended App had the 
  same name of a test class. Try renaming the object or the class if
  this could be your case too.
*/