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
_AnonymousUser
Specialist III
Specialist III

I'm unable to find the URL for Oracle JDK. Kindly provide the URL.
Anonymous
Not applicable
Author

Hi hemachandrann,

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Let me know if it is OK with you.
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

Hi Sabrina,
We have installed the same in our Linux machine.
But then, getting error while executing the job.
Regards,
Hemachandran
Anonymous
Not applicable
Author

Hi,
What's the error you got while executing the job? Have you set your java enviroment variable correctly?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

Yeah Java Env Variable is set correctly.
I'm getting the below error message:
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/T                                                                             alendJob
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14                                                                             2)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 13 more
Anonymous
Not applicable
Author

There are two method to resolve:
1. dos2unix all of file
2. Copy .zip file to Linux, then unzip at here and run
ThanhPT18