Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] TOS: Export Job, Exception in thread "main" java.lang.NoClassDefFound

Hello
Since I am using TOS 4.2.2, it is not possible to run an exported job. I always get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/TalendJob
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
Could not find the main class: ted.exporttest_0_1.exporttest. Program will exit.

I tried also the version 5.0.0.M1_r64233, but the same error appears.
Thanks for any hint to get this working... I need as soon as possible a solution.
Cu, Roger
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

After a reboot of my development linux machine, everything works again... strange, strange, strange problem!

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/TalendJob

Is it a custom routine? Before you export the job script, right click on the job name, and select 'set up dependencies routine' option, and see if the user routine is imported.
Best regards
Shong
Anonymous
Not applicable
Author

Hi shong
No, It is no customer routine. I do not use dependencies for this job at all... It is only a test job with a generator and tLogRow on it... (see screenshot)
Anonymous
Not applicable
Author

Hi
Which OS? Does the installation path of studio contains blank space? if so, try to reinstall it into a path without space.
Best regards
Shong
Anonymous
Not applicable
Author

OS: Linux
Path to TOS: /opt/TOS-All-r64233-V5.0.0M1
Anonymous
Not applicable
Author

The missing file is actually present in the lib/systemRoutines.jar file, but it could not be found... sounds like a classpath issue. How can I fix this?
Anonymous
Not applicable
Author

After a reboot of my development linux machine, everything works again... strange, strange, strange problem!