One Star

[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
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

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

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

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

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

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)
Community Manager

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

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

OS: Linux
Path to TOS: /opt/TOS-All-r64233-V5.0.0M1
One Star

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

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?
One Star

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

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