Why are there no compatible JREs in the "Runtimes" section, although I added the JDK?

I get an error message:

Unbound classpath container:'JRE System Library [JavaSE-1.8]' in project 'MyProject'

By checking the runtime , eclipse does not seem to be able to find compatible JREs. I see that jdk1.8.0_65 is being added to the Installed JREs .

enter image description here

enter image description here

I can temporarily fix the problem by setting up the project build path to use the JRE explicitly, rather than going through runtimes. However, the problem will be returned after updating the project using Maven .

Maven points to a variable at runtime. I cannot change the configuration of Maven because it is used by several commands (and it works for them). I need a runtime to detect JDK.

. , C:\workspace.metadata.plugins\org.eclipse.jdt.launching\libraryInfos.xml . , , .

:

Eclipse - Mars
Windows 7 (x64)
Apache Maven 3.2.5

. , . , JDK " JRE",

+4
2
  • , JRE (jdk1.8.0_65).
  • ..., JDK (, JDK-, , JDK).
  • , . JDK, prefs , .
0

.

, JAVA_HOME , , .

JAVA_HOME, / -vm eclipse.ini, .

0

Source: https://habr.com/ru/post/1616232/


All Articles