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:

  1. open project build path configuration:

right click in project, choose properties-->java build path.

enter image description here

2. add new jre system library:

click button add library choose jre system library:

enter image description here

3. choose installed jre library:

click installed jres... button , choose installed jre in system.

enter image description here

hope helps.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -