【发布时间】:2011-08-29 23:20:25
【问题描述】:
从某人的项目中,我收到此错误:
Java Build Path Problems (1 item)
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workplace that are strictly compatible with this environment.
我有最新的 JDK (jdk1.6.0_25)。据我了解,我可以执行以下操作之一:
- 下载 J2SE-1.5 环境以匹配项目。
- 编辑项目以与最新的 JDK 一致。 我该怎么做?
【问题讨论】:
-
下载 J2SE-1.5 环境,以防止出现在 1.5 中不存在的新 jre 中使用新类的情况。这是一个解决方案。