[resolved] Getting error while executing job on UNIX.
Hi,
I build a job in my local windows machine. and I copied that folder in UNIX server but when I trying to run .sh file, I got following error.
WYCHT_FF_TO_WYCHT_FILING_LNDG_WR]$ sh WYCHT_FF_TO_WYCHT_FILING_LNDG_WR_run.sh
Exception in thread "main" java.lang.NoClassDefFoundError: routines.system.api.TalendJob
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:529)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:440)
at java.net.URLClassLoader.access$300(URLClassLoader.java:68)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1027)
at java.security.AccessController.doPrivileged(AccessController.java:310)
at java.net.URLClassLoader.findClass(URLClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
... 12 more
Could not find the main class: wycht_wr.wycht_ff_to_wycht_filing_lndg_wr_0_1.WYCHT_FF_TO_WYCHT_FILING_LNDG_WR. Program will exit.
Hi, The error message indicates the required jars are missing, the job script might be not exported completely.Did you do right-click on the job, select 'Setup routines dependencies' option to add all system routines? Best regards Sabrina
Hi, This error java.lang.NoClassDefFoundError: routines.system.api.TalendJob is related to java classes. Could you run job on windows machine? What is JDK on unix machine? I think you are using routine in your jobs, have you enabled the dependency on routine for your jobs? While exporting have you checked the dependency checkbox? Vaibhav
Hi, Could you tell us the build version you're using? Did you follow up document TalendHelpCenter:How to build Jobs to export your job script? Did you use "All" for "Shell Launcher" option when export your job? Best regards Sabrina
Kiran, Sabrina
We are encountering the same issue, Could you please explain us more in detail about the lib folder and how did you resolve this issue ???
Thanks!
Hi ajosephraj, Did export your job script completely? Did you job run successfully in your local machine? Do you want to run your job out of talend studio on another server machine? Best regards Sabrina