Main method not found in class/illegal start of expression

喜你入骨 提交于 2019-12-02 07:04:18

Add main like this

...............................
...............................

public class MQN {

    TopologyAnalyser ta = new TopologyAnalyser();
    HBDAPlugin hbda = new HBDAPlugin();

    public static void main(String [] args) {
        // This is where the execution of the program will begin

    }

    public String calculateMQN(Molecule m) {
        if (!m.dearomatize()) {
            System.out.println("DEAROMATIZE ERROR");
    .............
    ..............

Post a comment here if you still get compiler errors

Your class indeed does not contain main method that must follow this signature:

public static void main(String[] args) {
}

This method is an entry point to your program that should invoke other methods, create objects etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!