Five Stars

Problems exporting job with custom routine

Hello,

 

I have problems with a job which does have a subjob which using a custom Routine "MyLib". The subjob does have the dependency set correctly, the main job does not. I did try adding it manually but this does not change anything on the exception...

 

A related issue i often have when exporting to standalone job:

https://community.talend.com/t5/Installing-and-Upgrading/Cannot-build-standalone-jobs-since-upgrade-...

 

Exception in thread "main" java.lang.NoClassDefFoundError: routines/MyLib
        at local_project.killrunningjobs_0_1.killRunningJobs.tFixedFlowInput_1Process(killRunningJobs.java:2748)
        at ...
Caused by: java.lang.ClassNotFoundException: routines.MyLib
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

  • Data Integration
1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: Problems exporting job with custom routine

Just found out that routines are saved in "routines.jar", this file is located under lib and needs to be transferred or updated on the server.

1 REPLY
Five Stars

Re: Problems exporting job with custom routine

Just found out that routines are saved in "routines.jar", this file is located under lib and needs to be transferred or updated on the server.