No JREs installed in the work space that are strictly compatible with this environment

eclipse, java

Solution

Open the Properties for the project and select `Java Build Path`, look at the `Libraries` tab. Select the `JRE System Library` entry and click the `Edit...` button. Choose a more sensible Execution environment or JRE from the list in the Edit Library dialog.

Problem

The following warning i am getting after running my java project in eclipse. ``` **Description Resource Path Location Type Build path specifies execution environment CDC-1.1/Foundation-1.1. There are no JREs installed in the work space that are strictly compatible with this environment**. ```

Original source