如何获得通过Eclipse的类文件? [英] How to get a class file by Eclipse?

查看:221
本文介绍了如何获得通过Eclipse的类文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写在Eclipse的应用程序,这是成功的编译和运行。在此之后,在相应的目录,我发现*的.java和* .class文件。然后,我删除了* .class文件,现在我不知道我怎么能找回来。

I wrote an application in the Eclipse, which was successfully compiled and run. After that, in a corresponding directory I found *.java and *.class files. Then I have deleted the *.class file and now I do not know how can I get it back.

Eclipse中写道:我一类的文件没有写,该项目可能会不一致,如果是的话请尝试刷新这个项目,并构建它。

Eclipse writes me "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it".

通过对我有一个下拉菜单中,我找到了刷新,但我无法找到我怎么能造项目的项目点右键。

By the right click on the project I got a drop down menu in which I found "Refresh" but I cannot find out how can I "build" the project.

所以,我怎么能再次生成的类文件?

So, how can I generate the class file again?

感谢您事先的任何帮助。

Thank you in advance for any help.

推荐答案

清洗(菜单:项目 - >清除...)项目应足以启动构建。检查自动构建(项目 - >自动构建)已启用。如果自动构建被禁止使用所有版本(菜单:项目 - >构建所有)

Cleaning (Menu: Project -> Clean ...) the project should be enough to start the build. Check that automatic build (Project -> Build Automatically) is enabled. If automatic build is disabled use build all (Menu: Project -> Build All).

这篇关于如何获得通过Eclipse的类文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆