Exception in thread "main" java.lang.NoClassDefFoundError:

Exception in thread "main" java.lang.NoClassDefFoundError:

Running Talend Open Studio 5.6.3 on Linux
Created some custom Java routines and placed them in a folder under "Code/Routines/PetersStuff. 
The custom code runs perfectly when executing my job within the  TOS IDE.
If if do a build job and pick all dependencies the job builds perfectly.
When I run the job I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:]
When I look at the what was all included in the lib/userRoutines.jar my routines are not getting bundled into the userRoutines.jar file.
Why?
Thank you
Peter
Moderator

Re: Exception in thread "main" java.lang.NoClassDefFoundError:

Hi,
If if do a build job and pick all dependencies the job builds perfectly.
When I run the job I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:]
When I look at the what was all included in the lib/userRoutines.jar my routines are not getting bundled into the userRoutines.jar file.

Did you get this issue when run job script .sh file? Have you already right clicked "Set up routine dependencies" for your user routines?
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.
Highlighted
Six Stars

Re: Exception in thread "main" java.lang.NoClassDefFoundError:

Hi,
Do you have permissions on your folder ?
Arnaud

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads