 <blockquote> <p>Right click on Project--> Properties, Java Build Path.</p> </blockquote> <p><img src="https://i.stack.imgur.com/U06f6.png" alt="enter image description here"></p> <p>Check whether you have JRE installed. If installed click on EDIT and check whether its pointing to correct location</p> <p><img src="https://i.stack.imgur.com/eWXh7.png" alt="enter image description here"></p>