简体   繁体   中英

No main method found on extension

i'm trying to compile this class from a Engine inside of my main program!

I'm trying to make a program that you can extent with extensions

Error on: C:\Users\Howl3r\Desktop\New folder\extensions\testExt\TestLoader.java.error.log
Line: -1 - Column: -1

no main method in extensions.testExt.TestLoader

Here is the code i'm trying to run with a engine:

package extensions.testExt;

import com.l2jsaver.controllers.ExtensionController;

import extensions.testExt.test.Test;

public class TestLoader 
{
    protected static int ID = 1;

    public static void main(String[] args) 
    {
        ExtensionController.getInstance().getExtensions().put(ID, new Test());
    }
}

There's nothing wrong with that code, as it exists in isolation. It may be worthwhile to rebuild your eclipse project from scratch, and copy your code files into the new project, just to get your settings back to a sane place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM