If you get the following type of error

Then follow these steps โ>
- Go to Windows . Then select Settings , in which select java (in the left corner).
- In java, select Installed JREs and check your JRE (if you installed jdk and certain environment variables correctly, you will see the current version of installed java here), as shown -

(I have Java 8 installed) Check the box if it is not installed . Click "Apply" and close.
Now press Alt + Enter to go to the project properties or right-click in the project and select "Properties".
In Properties, select Java Build Path in the left corner.
Choose Libraries

And click change (after selecting the JRE System Library ...) In the Press editor and select the default workspace JRE . Then click Finish
In Ordering and Exporting Check out the JRE library.
Then Finally Apply and close Clean up the project, and then build it.
Fixed issue .. Thanks!
Gaurav Chandani Sep 19 '17 at 18:28 2017-09-19 18:28
source share