Eclipse IDE - Error: Build path specifies execution environment Java SE 1.7

前端 未结 8 1358

In Eclipse, I am getting an error:

Build path specifies execution environment Java SE 1.7.
There are no JREs installed in the workspace that are st

8条回答
  •  难免孤独
    2021-02-04 02:28

    Sounds like what I had after installing a newer Eclipse.

    My solution:

    Window->Preferences, Java->Installed JREs->Execution Environment.

    Click the correct environment in the left panel, probably JavaSE-jre7

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

    If it's checked, but it isn't named jre7 [perfect match] then find the one in the left panel that does have 'perfect match' on the right and check that instead.

提交回复
热议问题