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

Custom Routines in multiple Projects

Hello community!
We've been using Talend for a while, creating Jobs in one project. We also have a set of routines that we use in all our jobs.

Now we are creating new jobs in a different project, because the scope is different but we need the same routines. So we import the routines into the new project.

I think this is not a good solution, since we have now duplicated the code, and maintenance can be hard and risky.


So, is there a way to use the same routines in all our projects without importing (and duplicate code) ???

Labels (2)
10 Replies
Anonymous
Not applicable
Author

Hi,
After hours of trying, now I can import the library in a tJava, instance an Object and see there attributes and methods, but I get this error when I try to run:
[statistics] connecting to socket on port 3335
[statistics] connected
Exception in thread "main" java.lang.NoClassDefFoundError: integrationTest/TestClass
at capa_adquisicion.test_procesos_jar_0_1.Test_Procesos_JAR.tJava_1Process(Test_Procesos_JAR.java:306)
at capa_adquisicion.test_procesos_jar_0_1.Test_Procesos_JAR.runJobInTOS(Test_Procesos_JAR.java:558)
at capa_adquisicion.test_procesos_jar_0_1.Test_Procesos_JAR.main(Test_Procesos_JAR.java:415)
Caused by: java.lang.ClassNotFoundException: integrationTest.TestClass
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
[statistics] disconnected


Can you please help me with this?

0683p000009MFln.png