Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Exception in thread "Thread-17" java.lang.Error: Unresolved compilation problems:
The method quote(String) in the type DatadogUtil is not applicable for the arguments (Object)
Lambda expressions are allowed only at source level 1.8 or above
...
Hello,
Do you have a user routine that uses Lambda expression new in Java 8?
Could you please make sure that all tac, command line, and jobserver are all running Java 8?
It looks like your commandline Java compliance was using 1.7. This needs to be set it to 1.8 for the three variables below:
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
Could you please follow these Steps to see if it works?
1) Stop commandline
2) Make the modification in the org.eclipse.jdt.core.prefs located in the Commandline/commandline-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
3) Restart Commandline
4) Log back in TAC: Regenerate, redeploy and run the task
We will appreciate it if you could give us some feedback.
Best regards
Sabrina
Hi...
I am facing the same issue. How can we set the Talend Command line server to compile the job with JDK 1.8?
Wen do not have any problems using Java 8 to compile jobs. Simple take care the command line application uses Java 8 and thats it.
Hello,
Do you have a user routine that uses Lambda expression new in Java 8?
Could you please make sure that all tac, command line, and jobserver are all running Java 8?
It looks like your commandline Java compliance was using 1.7. This needs to be set it to 1.8 for the three variables below:
org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
Could you please follow these Steps to see if it works?
1) Stop commandline
2) Make the modification in the org.eclipse.jdt.core.prefs located in the Commandline/commandline-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
3) Restart Commandline
4) Log back in TAC: Regenerate, redeploy and run the task
We will appreciate it if you could give us some feedback.
Best regards
Sabrina
Hi...
I tried the steps mentioned by you. This didn't solve the issue.
My Talend job and custom routines jar is still being compiled with JDK 1.7
Hello,
Could you please clarify in which Talend version/edition you are?
Best regards
Sabrina
Hi Sabrina,
I have successfully used your advice with Talend ESB version 6.3.1
Best regards
Jan
Hello,
Would you mind creating a case on talend support portal so that we can give you a remote assistance, webex session through support cycle with priority?
Best regards
Sabrina
Hi Sabrina,
why a support ticket, I have solved this already with the help of this thread.
Cheers
Jan