Highlighted
Four Stars

Java 1.8 syntax

Hi all,

 

I'm trying to generate a job in TAC which includes some Java 1.8 lambda syntax code. It compiles and runs nicely in Studio, but whenever I try to generate it on TAC, I get this error:

 

Lambda expressions are allowed only at source level 1.8 or above

 

TAC is running on Java 1.8 as well, so I wonder why it doesn't accept the new syntax.

 

Any insights?

2 REPLIES
Moderator

Re: Java 1.8 syntax

Hi,

Are you using the same Java 1.8 build version on both your studio and TAC? Could you please check  if the release a JDK 8 is with lambdas or without?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Java 1.8 syntax

Yeah, I made sure the exact same version and patch level of JDK are both on the local machine and TAC.

I'm not sure though if there are Java 1.8 releases with support for lambda syntax explicitely excluded - and if there are, I don't know how to check that.