Import external jar using routines

Eight Stars

Import external jar using routines

Hi Talend experts

 

I exported routine and select dependencies as well and imported to master branch.

 

When I ran my ETL job it gives me an error:

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException

 

So not sure if I am doing something wrong. Is there any process of importing/exporting routine with external libraries?

 

I tried creating Routine from the scratch and added library afresh but doesn't seem to be working in new branch.

 

Any help is really appreciated!

 

Thanks

Harshal.


Accepted Solutions
Eight Stars

Re: Import external jar using routines

Hi all

 

I used tLibraryLoad instead of importing export dependencies for Routine and it worked fine.

 

Thanks.


All Replies
Eight Stars

Re: Import external jar using routines

Hi all

 

I used tLibraryLoad instead of importing export dependencies for Routine and it worked fine.

 

Thanks.

Moderator

Re: Import external jar using routines

Hello,

Sorry for our silence. We do our best to answer as many posts as possible.
Glad that you found a workaround.
Thanks for sharing your solution.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.