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

后端 未结 9 1936
孤独总比滥情好
孤独总比滥情好 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 04:15

    Check, you might have written this statement wrong.

    public static void main(String Args[])
    

    I have also just started java and was facing the same error and it was occuring as i didn't put [] after args. so check ur statment.

    0 讨论(0)
  • 2021-02-05 04:16

    Click on the drop down next to the Run button, After that choose Run Configuration, shows three option, for example i choose java application add class(Name of the class of your project) in that then Click on the ok button ...Run your application :)

    Neeraj

    0 讨论(0)
  • 2021-02-05 04:17

    Check if the filename is same as the classname used by your program.

    eg.:

    class Dfs{ psvm(String[] args){}}
    

    filename should be Dfs.java

    0 讨论(0)
提交回复
热议问题