Skip to main content
Announcements
Happy New Year! Cheers to another year of collaboration, connections and success.
cancel
Showing results for 
Search instead for 
Did you mean: 
ASingh1693917211
Contributor
Contributor

Class Not Found Exception

Hi Team

We have developed few talend jobs on local windows , but while moving the job to linux it throws below error-

"Error: Could not find or load main class dummy.demo_0_1.demo

Caused by: java.lang.ClassNotFoundException: dummy.demo_0_1.demoClass "

  • The build was copied manually on the linux server
  • When the developer executes the jobs with personal ID , the job gets executed
  • when the build is deployed using CICD OR through functional ID , the above error pops up .
  • We noticed that in lib folder if we retain routines.jar using developer ID and copy rest of the files with functional /any other ID the job execution is success .

Could you please guide us what could be the the issue ? It could be a file permission issue but not sure which file . Any help/pointers is highly appreciated.

Labels (2)
1 Reply
Anonymous
Not applicable

Hi

It seems like a permission issue, "Error: Could not find or load main class dummy.demo_0_1.demo" means it can't find the java file of the job (jobName_0_1.jar) or can't access it, open the job script jobName_run.sh, you will see which files will be accessed and where.

 

Regards

Shong