Eclipse IDE - Error: Build Path Indicates Java SE 1.7 Runtime

In Eclipse, I get an error:

The build path indicates the Java SE 1.7 runtime.
There are no JREs in the workspace that are strictly compatible with this environment.

+6
source share
5 answers

try it

In Eclipse, your project -> properties -> java build path : Libraries Remove the "JRE System Library[J2SE 1.4]" -> click "Add Library" button -> JRE System Library -> select the new "Executin Environment" or Workspace default JRE 
+15
source

Go to Project | Properties Select the Java Build Path section. Select the current JRE System Library and select Delete. Select "Add Library", and in the "JRE System Library" category, select your system library; you probably just need to select the default workspace JPL

In general, in the "Window Settings" section, you can check the Java | Installed JREs | Execution to find out which of the installed JREs matches a specific runtime.

+5
source

It looks like what I had after installing the new Eclipse.

My decision:

window-> Preferences, Java-> Installed JREs-> Execution Conditions.

Click the correct environment in the left pane, maybe JavaSE-jre7

If the checkbox in the right pane is empty, check it.

If it is installed, but it is not named jre7 [perfect match] , then find the one on the left pane that has the โ€œperfect matchโ€ on the right, and check it.

+2
source

Go to the control panel - check if the new version of java has been updated -Install it and configure the assembly of the "runtime" JRE library to the previous version.

Probably if Java 7 is upgraded to Java 8, the problem will be higher. To avoid this warning, you can simply remove the new update and restore the old version in runtime.

0
source

This should work:

  • Your project> Build Path> Customize Build Path.
  • Click the "Libraries" tab.
  • Select JRE System Library [JavaSE-1.7].
  • Click "Edit."
  • Note that the "runtime" is JavaSE-1.7 (jdk1.8. {Y}).
  • Click "Installed JREs."
  • You should see jdk1.8. {y} but not jdk1.7. {x}.
  • Click Add.
  • Select a standard virtual machine.
  • Click "Next."
  • Find the java folder, for example. C:\Program Files\Java\jdk1.7.{x} . If you do not have it, you need to install it.
  • Put JRE home with him. e.g. C:\Program Files\Java\jdk1.7.0_80 .

Execution Conditions will now be JavaSE-1.7 (jdk1.7.0_80).

0
source

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


All Articles