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
Seven Stars

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

Hi,
Do you have permissions on your folder ?
Arnaud

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now