Java 日食不';t构建

Java 日食不';t构建,java,eclipse,Java,Eclipse,以前工作的Ecplise现在告诉我错误 Java Virtual Machine Launcher Could not find main class: testing2. Program will exist. testing2是我的类,存在一个源文件,但Ecplise似乎没有构建.class文件。 可能是我按错了热键,不小心更改了某些设置?应该检查以下菜单项:Project>buildautomatically,正如Bozho所说,应该检查buildautomatically,它会在源文件

以前工作的Ecplise现在告诉我错误

Java Virtual Machine Launcher
Could not find main class: testing2. Program will exist.
testing2是我的类,存在一个源文件,但Ecplise似乎没有构建.class文件。
可能是我按错了热键,不小心更改了某些设置?

应该检查以下菜单项:
Project>buildautomatically

,正如Bozho所说,应该检查buildautomatically,它会在源文件的每次保存上构建项目


如果未选中该选项,则必须通过右键单击并选择build project来手动生成项目。

您能否描述一下如何通过Eclipse执行代码?