Adding custom (user defined) java code - "cannot be resolved" error

Adding custom (user defined) java code - "cannot be resolved" error

Hi everyone,I am trying to use user defined method in tJavaRow component in a job. It seems to me like I'm doing everything by the book ("TalendOpenStudio_UG_41b_EN.pdf", pages 267 to 272 in pdf), but I'm still getting "cannot be resolved" error when running a job.This is my setup:1. I've added the java code in Repository / Code / Routines / MyCode. I've created 2 methods: SqlINstr, SqlINnum and I kept the example helloExample code as well. Enclosed that in MyCode public class and tried to create all comments as required:

Hi, I'm having the same problem here...There is no typo error or case sensitive.I didn't even write into the code manually.I added it into the expression filter.and in expression filter, my method is visible and available.but when i tried to run the job, it gave me that MyMethod cannot be resolvedI tried to import the class manually too....Please.... tell me how can I fix this.....Thanks

Hi, I'm having the same problem here...There is no typo error or case sensitive.I didn't even write into the code manually.I added it into the expression filter.and in expression filter, my method is visible and available.but when i tried to run the job, it gave me that MyMethod cannot be resolvedI tried to import the class manually too....Please.... tell me how can I fix this.....Thanks

Right click on the job name and select 'set routines dependencies' option to check your custom routine is there, add it if not.Best regardsShong

----------------------------------------------------------Talend | Data Agility for Modern Business