新しいJavaプログラマーは、Javaプログラムを実行しようとすると、次のようなメッセージが表示されることがよくあります。(さまざまなJavaツールやIDEなどが、この問題のさまざまな診断を提供します。)
Error: Main method not found in class MyClass, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
Error: Main method not found in the file, please define the main method as:
public static void main(String[] args)
Error: Main method is not static in class MyClass, please define the main method as:
public static void main(String[] args)
Error: Main method must return a value of type void in class MyClass, please
define the main method as:
public static void main(String[] args)
java.lang.NoSuchMethodError: main
Exception in thread "main"
これはどういう意味ですか、何が原因で、それを修正するにはどうすればよいですか?