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
2 REPLIES
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.
Six Stars

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

Hi,
Do you have permissions on your folder ?
Arnaud