Error: Can not find the main method in the class ConstructorTest1, set the main method is defined as:
public static void main (String [] args)
otherwise JavaFX application class must extend javafx.application.Application
As a white, first I encountered this problem today. I drop mom yeah this is Shaya, can not do anything just started killing me, I thought the program was wrong, various test various checks and found nothing wrong. So I checked some articles, find the following solutions.
This problem occurs because in the same folder, there are keyword-named files such String.java.
It is like that. Then delete the file. It will be OK. This problem will be solved.
Since then, I remember, you do not save the class file after the keyword. . .