Eclipse Java error: This selection cannot be launched and there are no recent launches

后端 未结 9 1957
孤独总比滥情好
孤独总比滥情好 2021-02-05 03:21

I have looked everywhere on the internet and tried everything the forums say to do and nothing works. This error keeps coming up. I have tried running my java project (not for a

9条回答
  •  花落未央
    2021-02-05 03:53

    Eclipse needs to see a main method in one of your project's source files in order to determine what kind of project it is so that it can offer the proper run options:

    public static void main(String[] args)
    

    Without that method signature (or with a malformed version of that method signature), the Run As menu item will not present any run options.

提交回复
热议问题