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

Hi 
How do you move the job script file to Linux machine? Talend generate a zip package while exporting the job script, unzip the archive file and execute the batch file to ensure the export is completely and the job works fine. 
If you want to execute the job on another machine, you should move the zip package, and then unzip the zip package and execute it.
Best regards
Shong

Hi Shong,
I did the same way as you have mentioned.
Job is running fine in windows. But not in Linux.
Regards,
Hemachandran
Anonymous
Not applicable
Author

Hi,
java 1.7 is installed in the Linux machine(64 bits).

Is it Oralce JDK  1.7  or Open JDK?

Best regards
Sabrina
Anonymous
Not applicable
Author

Open JDK is installed in Linux
Anonymous
Not applicable
Author

Hi,

OpenJDK is not supported by Talend, it requires Oralce JDK 1.6 or higher. Some jobs may work with OpenJDK, but it is not certified.

Best regards
Sabrina
Anonymous
Not applicable
Author

Hi
I am not able to reproduce this issue, as xdshi said, OpenJDK is not supported by Talend, try to install Oracle JDK and test it again.
Best regards
Shong
Anonymous
Not applicable
Author

Hi,
Is there any update for your issue?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

Hi,
Is there any update for your issue?
Best regards
Sabrina

Hi Sabrina,
I will check and let you know. I'm installing Oracle JDK now.
Regards,
Hemachandran
Anonymous
Not applicable
Author

Hi,
Thanks for your quick reponse. Feel free to post your issue on forum.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina / Shong,
Whether jdk-7u65-linux-x64.tar.gz from the oracle site http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html will help us resolve this issue in Linux 64 bit machine ? Please suggest.
Thanks!
Anonymous
Not applicable
Author

Hi,
According to document TalendHelpCenter:Compatible Platforms, you should install Oracle Java 7 JDK in your  Linux 64 bit machine.
Best regards
Sabrina