Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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?

Labels (3)
8 Replies
Anonymous
Not applicable
Author

Hi,

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

Best regards

Sabrina

Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

Hello,

Did you deploy a .zip on TAC?

With your subscription solution, could you please create a case on talend support portal so that we can give you a remote assistance through support cycle with priority?

 

Best regards

Sabrina

Anonymous
Not applicable
Author

No. When I build the job locally on my own computer, then it works both locally and when installed in a zip or jar, it runs on the execution server too.

However, our workflow is to save jobs into a git repository, and have TAC generate (build) them on the server. That's the point where it fails for some reason (see the thread-starter post), despite it's JDK 1.8 installed on the server side also.
Anonymous
Not applicable
Author

Hi,

Could you please create a case on talend support portal so that we can give you a remote assistance(webex) through support cycle with priority?

Best regards

Sabrina

brama
Contributor III
Contributor III

Hi Mortee/sabrina,

 

Did you found any resolution to the issue? I am also facing the same error. When i run it from studio job runs fine. But when i run it from TAC it is giving the error as "Lambda expressions are allowed only at source level 1.8 or above".

 

Kindly comment.

 

Thanks,

Ram

Anonymous
Not applicable
Author

Hello brama,

Could you please indicate on which talend build version you got this issue?

Best regards

Sabrina

Anonymous
Not applicable
Author

I was able to solve this by going to Window->Preferences->Java->Compiler. In the JDK Compliance window for Compiler compliance level I set it 1.8. Hope this helps.