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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
aitsakel
Contributor
Contributor

Talend 6.1 : Code generation problem when using java 8 syntax

Hello,
I have a problem with the open source version 6.1 of Talend.
I created a component using the java 8 syntax.
The component is published in the palette without problems.
When visualizing the source code of the job that uses this component, I have the void. Looking at the log, I have the following error:
"lambda expressions are only available at source level 1.8 or above"
I have already set the compliance level to 1.8.
And I launch the Talend studio with the option:

 

-vm
C: \ Program Files \ Java \ jdk1.8.0_171 \ bin

Any suggestions?
Thanks

Labels (4)
8 Replies
Anonymous
Not applicable

Hello,

Are you using talend open studio V 6.1 or subscription solution? Is the Studio process itself running in java 8?

0683p000009M5JA.png

Best regards

Sabrina

aitsakel
Contributor
Contributor
Author

Hi,

I'm using talend open studio V 6.1.

I already put the compliance level at 1.8 and the studio process is running in java 8

 

Thanks

Anonymous
Not applicable

Hello,

Are you using oracle JDK 1.8 instead of JRE? Have you tried to restart your studio to see if this issue repro?

Best regards

Sabrina

aitsakel
Contributor
Contributor
Author

I'm using oracle JDK 1.8

0683p000009M5JU.jpg

I restarted my studio several times but the problem persists.

 

Thanks

Anonymous
Not applicable

Do you have any other versions of Java on your machine? I suspect you have and that your Path variable is pointing to an older one.

 

Your configuration of the Talend ini file might be causing issues as well. You posted this....

-vm
C: \ Program Files \ Java \ jdk1.8.0_171 \ bin

Could you amend to this....

-vm C:\Program Files\Java\jdk1.8.0_171\bin
aitsakel
Contributor
Contributor
Author

The environment variable JAVA_HOME points well to version 8 of java

I put the correct conf on the file ini of Talend.

0683p000009M5Jt.jpg

 

Thanks

aitsakel
Contributor
Contributor
Author

Some have an idea about the origin of the problem.

I think I put the right configuration but the problem persists.

 

Thanks again

Anonymous
Not applicable

What is in your PATH variable. The JAVA_HOME variable is not really a deal breaker here. The PATH *could* be causing this.

 

Also, have you tried reinstalling?