Hi,
I have a job that uses a routine I have created.
When I export the job, the jar userRoutines.jar doesn't include the class of my routine. It only contains a META-INF directory.
So when i run the job, I get a NoClassDefFoundError: routines/MyRoutine
In the Export job window, User Routine is checked.
I use version 5.0.1 of Talend Open Studio
What do I do wrong ?
Regards,
Nicolas
Hi Nicolas
Before you export the job script, right click on the job name, and select 'User rountines' option, and see if the user routine is imported.
Regards,
Pedro
Hi
You can find "+" button at the right of this small windows.
Just click it.
Which version of TOS do you use?
The behavior is abnormal. Because usually the user routines will be added automatically when you call it in one job.
Regards,
Pedro
Hi got it. the PLUS button is disabled when the job in opened.... So I managed to add my routine and it's now exported as well. Great. But I agree with you, the routine should have been detected automatically as a dependency of my job. version used: 5.0.1.r74687 I also use the routine in a filter of a tMap as shown in the uploaded image.