1. 程式人生 > >Exception in thread "main" java.lang.NoSuchMethodException: xxx.main([Ljava.lang.String;)

Exception in thread "main" java.lang.NoSuchMethodException: xxx.main([Ljava.lang.String;)

在使用IntelliJ IDEA建立的HelloWorld專案,執行專案時,輸出如下錯誤資訊:

Exception in thread "main" java.lang.NoSuchMethodException: HelloWorld.HelloWorld.HelloWorld.main([Ljava.lang.String;)
at java.lang.Class.getMethod(Class.java:1778)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:125)

如下圖:


===========文件資訊============ 



署名(BY) :testcs_dn(微wx笑) 
文章出處:[無知人生,記錄點滴](http://blog.csdn.net/testcs_dn)