简体   繁体   English

蚀突然找不到兼容的jre

[英]eclipse can't find compatible jre suddenly

One day, it suddenly happened that eclipse can't compile the project. 有一天,突然发生了蚀无法编译该项目的情况。 The eclipse can't find the compatible JRE for javaSE-1.7 anymore. eclipse找不到适用于javaSE-1.7的兼容JRE。 I know that we can change the "JRE System Library" to one of my "Installed JREs" settings, but my project has too many child modules to change. 我知道我们可以将“ JRE系统库”更改为我的“已安装JRE”设置之一,但是我的项目中有太多子模块需要更改。

Reinstall JDK and Reconfig the "Installed JREs" did not help my "eclipse-jee-oxygen-1" recognize the compatible JRE again, even in a new blank workspace. 重新安装JDK并重新配置,即使在新的空白工作区中,“已安装的JRE”也无法帮助我的“ eclipse-jee-oxygen-1”再次识别兼容的JRE。 在此处输入图片说明 在此处输入图片说明

I doubt eclipse oxygen runs without JDK 8 我怀疑没有JDK 8的日食氧气

Eclipse-oxygen-installation Eclipse的氧气安装

eclipse.ini
-vmargs
-Dosgi.requiredJavaVersion=1.8

Try adding -vm to eclipse.ini 尝试将-vm添加到eclipse.ini

-vm
[path-to-jdk-7-home]\bin\server\jvm.dll

It looks like the windows env variable "JAVA_TOOL_OPTIONS" whcich I setted to "-Dfile.encoding=UTF-8 -Xms256m -Xmx4096m" cause the problem. 我设置为“ -Dfile.encoding = UTF-8 -Xms256m -Xmx4096m”的Windows env变量“ JAVA_TOOL_OPTIONS”看起来引起了问题。 When I remove it, then the eclipse start to recognize the compatible JRE again. 当我删除它时,日食再次开始识别兼容的JRE。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM