Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I had a project on Talend Data Integration 6.1 working perfectly;
Due a problem in the machine, I needed to recreate the environment in a new machine so I have downloaded Talend Data Integration 7.1, I have downloaded java jdk1.8.0_212 and set up JAVA_HOME to "<C:\Program Files\Java\jdk1.8.0_212>" and ;%JAVA_HOME%\bin in within path variable
in a SubJob I have a tRunJob_1 with Use dynamic job selected; now everytiem I debug the project I get the following error:
java.io.IOException: Cannot run program "<C:\Program Files\Java\jdk1.8.0_212\jre\bin\java.exe>": CreateProcess error=206, The filename or extension is too long
I have try following solutions:
Move Java folder to E:, changing all environment variables:
Exception in component tRunJob_1 (PassiveData_Parent_Job)
java.lang.RuntimeException: Child job running failed.
java.io.IOException: Cannot run program "E:/jdk1.8.0_212/jre/bin/java.exe": CreateProcess error=206, The filename or extension is too long
at reflectedlife_newbernard.passivedata_parent_job_0_1.PassiveData_Parent_Job.tRunJob_1Process(PassiveData_Parent_Job.java:2991)
at reflectedlife_newbernard.passivedata_parent_job_0_1.PassiveData_Parent_Job.tPostgresqlRow_6Process(PassiveData_Parent_Job.java:2668)
at reflectedlife_newbernard.passivedata_parent_job_0_1.PassiveData_Parent_Job.tPostgresqlInput_1Process(PassiveData_Parent_Job.java:2340)
at reflectedlife_newbernard.passivedata_parent_job_0_1.PassiveData_Parent_Job.runJobInTOS(PassiveData_Parent_Job.java:5170)
at reflectedlife_newbernard.passivedata_parent_job_0_1.PassiveData_Parent_Job.main(PassiveData_Parent_Job.java:4802)
I found this in StackOverflow https://stackoverflow.com/questions/10519558/createprocess-error-206-the-filename-or-extension-is-to...
I try to set up the accepted answer update, but I can not find where to set up useexternalfile="yes" in talend:
I also try this comment (in the same accepted answer)
"Reduce the classpath" is a nice hint, but let me elaborate a little bit on this: In my case, I tried to build a maven project, and the -classpath argument was generated to contain all the dependencies. So, something like this came out: C:\Users\myself\.m2\repository\…;C:\Users\myself\.m2\repository\…[…tons more]. Moving my local maven repo cache to D:\m2 did the trick: Classpath shrank down to D:\m2\…;D:\m2\… - bingo! Remember to set the localRepository path in your maven config
to try that:
I have copied C:\Talend\TOS_DI-Win32-20181026_1147-V7.1.1\configuration\.m2 into E drive:
then in talend: window -->preference-->Maven-->UserPreference update settings and change localRepository to E:\.m2\repository
I am still receiving the same java error.
Thanks very much for your help
The issue is running the job through talend studio 7.3, as mentioned it is working fine in Talend 6.3 with same setup. With respect to context we have checked transmit whole context.
And run as independent process. Number of params passed are only 2 but transmit whole context will have a few.
Hello,
Is your context value quite long? Please have a look at my screenshot for details. If so, maybe use a process communication way in the generated codes to pass the context values to the new process or specify the context file.
In addition to that, for v6 of Talend products JDKv1.8 is required instead of JRE.
Would you please check what's your java_home? Please make sure java path use JDK and java version used in Studio => windows => Preference => JAVA => Installed JREs => JRE_HOME
Best regards
Sabrina