Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
Job is running now I forget to copy 'lib' folder into UNIX machine.

Thank you,
Kiran

View solution in original post

35 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi Sabrina,
All options are disabled, When we choose 'Setup routines dependencies'.
Anonymous
Not applicable
Author

Hi Vaibhav,
Yes job is running on my local Windows Machine.
Java version on UNIX server is 1.6 (64-bit).
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi,
Job is running now I forget to copy 'lib' folder into UNIX machine.

Thank you,
Kiran
Anonymous
Not applicable
Author

Hi,
Thanks for your feedback. Could you please mark this topic as "Resolved"?
Best regards
Sabrina
Anonymous
Not applicable
Author

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!
Anonymous
Not applicable
Author

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