为什么Eclipse不更新类? [英] Why isn't Eclipse updating the classes?

查看:126
本文介绍了为什么Eclipse不更新类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自昨天以来,Eclipse没有更新我的项目的 .class 文件。例如, filename.java 是最新的,但$ code> filename.class 文件的修改日期为昨天。它以前工作很好。为什么会发生这种情况?

Since yesterday, Eclipse is not updating the .class files of my project. For example the filename.java is up to date, but the filename.class file has a modified date of yesterday. It used to work just fine. Why is this happening?

推荐答案

我会做些什么或仔细检查:

Few things I would do or double check:


  1. 项目>清理您正在处理的项目。

  2. 项目>自动构建 - 已启用,因此代码在工作空间中重新生成并保存更改。

  3. 窗口>首选项,并确保您安装的JRE和编译器与Java版本匹配

这篇关于为什么Eclipse不更新类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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