我已经从其他人导入了一个项目。他们使用旧版本的JDK。但是我在C:\ Program Files \ Java \ jdk1.8.0_201中安装了较新的版本jdk1.8.0_201。
Eclipse显示错误:
"Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'PPP-WEB'.
The archive: C:/Program Files/Java/jdk1.8.0_101/lib/tools.jar which is referenced by the classpath, does not exist.
The archive: C:/Program Files/Java/jdk1.8.0_101/lib/tools.jar which is referenced by the classpath, does not exist."
我已经检查了这一点:https://stackoverflow.com/a/12588545/11133637但这是为了在JDK 1.6和1.5之间切换,而不是像这样的101的次要版本201。该怎么办?
答案 0 :(得分:0)
在您的项目中,将.classpath文件更改为您的JDK版本。
如果要更改版本,请转到“首选项”->“ Java”->“已安装的JRE”并更改版本。