score:1

Accepted answer

here are a couple of things to consider:

  1. do you have a valid jdk installed? you can check c:\program files\java or c:\program files(x86)\java\ for a jdk folder.

  2. in eclipse, right click the java project, > build path > configure build path... this should open up a java build path window.

    in here, click the libraries tab. if there are now jre system library entries, click add library... > jre system library > next and you can either pick workspace default jre which should be something like jre1.8.0_25 or, you can select execution environment. if you select the latter, click the environments... button, and select the javase-* version that you would like.


Related Query

More Query from same tag