Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i am trying to use FileUtils.
I put the line "import org.apache.commons.io.FileUtils; " in my tJavaRow component under Advanced settings.
But i get the error messages:
The import org.apache.commons cannot be resolved
or
FileUtils cannot be resolved
Hello,
If you want your job to have access to the external library, please use a tLibraryLoad component to load external jar file before you use it.
tLibraryLoad
|
onsubjobok
|
tJavaRow
In addition to that, if you need to use these same code many time in different job, we would suggest you to create a routine and import external library one time in repository metadata, and call the routine in the job.
Please refer to this documentation to learn how to create a routine and call it in a job.
https://help.talend.com/en-US/studio-user-guide/8.0-R2024-06/creating-custom-routine-jars
Best regards
Sabrina
Hello,
If you want your job to have access to the external library, please use a tLibraryLoad component to load external jar file before you use it.
tLibraryLoad
|
onsubjobok
|
tJavaRow
In addition to that, if you need to use these same code many time in different job, we would suggest you to create a routine and import external library one time in repository metadata, and call the routine in the job.
Please refer to this documentation to learn how to create a routine and call it in a job.
https://help.talend.com/en-US/studio-user-guide/8.0-R2024-06/creating-custom-routine-jars
Best regards
Sabrina