1

I have updated the JRE of my Eclipse and selected the new one in the "Installed JREs" tab, but I can't find it in the "Compiler" tab so I can't use it. I want to be able to use lambda expressions, and for that I need the compiler to figure out that Java8 exists.

Images of my Issue:

enter image description here enter image description here

Anyone who can help me?

4
  • If that link doesn't work, here are backups NOCompiler: drive.google.com/open?id=1_x9cY3Z6Ws0DioPoHRe-RF82uUVPclHE -----HasJRE: drive.google.com/open?id=14fwGtOJDmn2UvXk_2pR5jqT4XnauBNrm
    – Anju Maaka
    Commented Jun 30, 2018 at 11:59
  • 1
    What version of Eclipse is this? Versions before Eclipse Luna don't support Java 8.
    – greg-449
    Commented Jun 30, 2018 at 12:11
  • I'm pretty sure it's older than that. Got to get a new one then, I guess
    – Anju Maaka
    Commented Jun 30, 2018 at 13:02
  • 1
    Eclipse has its own compiler. If the Compile compliance level drop-down does not contain 1.8, 9 and 10, upgrade your Eclipse IDE. Besides that, the first screenshot shows Window > Preferences... which is used for new projects, for existing project you have to change the compiler settings in Project > Properties.... In the second screenshot choose a JDK, not only a JRE. Otherwise you cannot see the source code of the JRE (e. g. of java.lang.String etc.).
    – howlger
    Commented Jun 30, 2018 at 14:15

1 Answer 1

1

Please check your current version of the Eclipse. It might not be the latest.

Not the answer you're looking for? Browse other questions tagged or ask your own question.