Reputation: 481
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. 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.
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.
Upvotes: 0
Views: 532
Reputation: 481
It looks like the windows env variable "JAVA_TOOL_OPTIONS" whcich I setted to "-Dfile.encoding=UTF-8 -Xms256m -Xmx4096m" cause the problem. When I remove it, then the eclipse start to recognize the compatible JRE again.
Upvotes: 0
Reputation: 57
I doubt eclipse oxygen runs without JDK 8
eclipse.ini
-vmargs
-Dosgi.requiredJavaVersion=1.8
Try adding -vm to eclipse.ini
-vm
[path-to-jdk-7-home]\bin\server\jvm.dll
Upvotes: 1