java - Eclipse Luna 1.7 to 1.8 errors -
i working in eclipse luna , tried write static method in interface gave me error. moused on , forgot said ... 1.8 jre
. clicked , there's error on every line saying things like:
string cannot resolved type
and
java.lang.object cannot resolved
how go fix it?
the problem here confusion in eclipse between installed jre in system , used jre in project, resolve point installed jre in system, this:
- open project build path configuration:
right click in project, choose properties
-->java build path
.
2. add new jre system library:
click button add library choose jre system library
:
3. choose installed jre library:
click installed jres... button , choose installed jre in system.
hope helps.