找不到主要方法,但main(String [] args)不能解决任何问题

这是我的代码

public class charDBMain{
    public static void main(String[] args) {

        charDBNewChar newChar = new charDBNewChar();

        System.out.print("Hello?");

        newChar.openFile();
        newChar.addChar("Skank McGenk", "Eiran", "Wizard", 0);
    }

每当我运行它时,都会出现此错误:

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

I have the public static void main(String[] args) included in the code, what's going wrong?