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

Highlighted

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

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

Hi,
Do you have permissions on your folder ?
Arnaud

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

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

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

Download