Java - Eclipse lambda expressions are not supported in -source 1.7

Hi, Trying to build a java project in Eclipse Neon and I'm getting the error below. When I look at the Java compiler settings for the project it shows as using 1.8 so I'm not sure where it is getting the 1.7 from. My java version is Is there another eclipse settings somewhere which might still be referring to 1.7

lambda expressions are not supported in -source 1.7
  (use -source 8 or higher to enable lambda expressions)

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is it a project that we can look at online?
victoriaharryAuthor Commented:
no sorry, it is on a client site.
victoriaharryAuthor Commented:
I'm guessing the lambada expressions in the code below is causing the issue. Alternatively if there is a way to swap these out so I don't have to use them would work as well

List<TestOutcome> testOutcomes = serenityRunner.getTestOutcomes();
   -> {
            Optional<TestOutcome> firstFailure = -> outcome.isError() || outcome.isFailure()).findFirst();
            firstFailure.ifPresent(failed -> {
                sampleResult.setResponseData(failed.getTestFailureMessage(), null);

Open in new window

Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

I could probably rewrite that for you, but you'd probably be better off waiting for someone who knows Eclipse well. I don't really use it
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Can you provide a screenshot of your Java Compiler settings for your project? Also, are you using Maven?
victoriaharryAuthor Commented:
Compiler settings in eclipse
I'm using maven to build
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Can you post the maven pom.xml? Do you have 1.8 specified in the maven pom properties?

Something like...
<project xmlns="" xmlns:xsi=""


Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
victoriaharryAuthor Commented:
Thanks, the pom still referenced 1.7. I changed it to 1.8 and it built successfully
mccarlIT Business Systems Analyst / Software DeveloperCommented:
You're welcome, glad that it is all sorted!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.