英文:
java error in eclipse "The project was not built due to.."
问题
我安装了Java和Eclipse,但一直在遇到这个错误。
(环境变量已更改,通过命令提示符检查了java -version / javac -version)
在那之后,我所做的是:
将Java版本从10更改为15(重新安装)
多次重新安装Eclipse
接下来我该怎么做?
Eclipse版本:Eclipse IDE 2020‑09
Java版本:jdk-13.0.2_windows-x64
**
由于“无法初始化C:\Users\mirei\AppData\Local\Temp\eoiE4ED.tmp\plugins\org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_14.0.2.v20200815-0932\jre\lib\jrt-fs.jar”的ct.sym,项目未构建成功。解决问题,然后尝试刷新此项目并构建,因为可能不一致。
**
英文:
i installed java and eclipse, but i keep getting this error.<br>
(environment variables changed ,java -version / javac -version checked from cmd)<br>after that what i did is:<br>
changing java version from 10 to 15(reinstall)<br>
reinstall eclipse several times<br>
what should i do next?
eclipse: Eclipse IDE 2020‑09<br>
java: jdk-13.0.2_windows-x64
**
The project was not built due to "Failed to init ct.sym for C:\Users\mirei\AppData\Local\Temp\eoiE4ED.tmp\plugins\org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_14.0.2.v20200815-0932\jre\lib\jrt-fs.jar". Fix the problem, then try refreshing this project and building it since it may be inconsistent
**
答案1
得分: 3
请打开项目属性:右键单击该项目。属性的最后一个选项是“属性”,选择“Java编译器”部分,在“使用'--release'选项”框中,取消选中该框。选择应用并选择是以重新构建项目。
英文:
Please open the project properties: >> right-click on that project. >> Last option for Properties >> choose Java Compiler section, >> in the Use '--release' option box, uncheck that box. Select Apply and Yes to rebuild the project.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论