Error in Eclipse - Mainclass not found

后端 未结 5 1909
醉酒成梦
醉酒成梦 2021-01-24 10:01

I\'m new in programing and I like it pretty much. I\'ve just downloaded Eclipse and I got an error I can\'t help me with. Unfortunately it\'s in German but the meaning is someth

5条回答
  •  后悔当初
    2021-01-24 10:48

    when you run java it runs main method that i don't see in your class so basically eclipse is telling you: "what do you want me to run?", you should implement it:

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

提交回复
热议问题