Java Eclipse not showing errors and can't run main?

2011-09-27 4:32 am
Eclipse isn't showing errors for my project. I've tried moving files around but that didn't help. Also, I get "selection does not contain a main type" launch error when I run main. I'm fairly new to Eclipse what should I do?

回答 (2)

2011-09-27 4:52 am
✔ 最佳答案
When you mean "isn't showing errors," do you mean that the errors pane is empty, or instead that the error pane is not present? Could it be that you have turned off automatic rebuild of your code?

Does your class have a main method with the proper definition:
public static void main( String[] args ) { ... }
... and are you trying to run that specific class as a main program?
2016-12-04 8:57 pm
is this code in a document talked approximately as Helloworld.java? The compiler does require that the filename journey the call of the outermost type declared interior it, and supply you blunders in any different case.


收錄日期: 2021-04-16 13:25:17
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20110926203201AArWRuV

檢視 Wayback Machine 備份