Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
YunusEmre
Partner - Contributor II
Partner - Contributor II

Talend tJava Error

Hi everyone,

i'm trying to run attached java code. Project settings Pom file is at attached. 

i am getting the following error when i run "basic run":

Error: Unable to initialize main class dq_poc.boldtest_0_1.boldtest Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Font

i am getting the following error when i run "debug run":

YunusEmre_0-1732483210875.png
what am i missing? do you have any idea?
Labels (1)
  • Java

4 Replies
Shicong_Hong
Employee
Employee

Hello 

Make sure to import the necessary jar file into the job. Within the job, utilize the tLibraraLoad component to load the jar. If you're writing Java code in a user routine, simply right-click on the routine and choose 'Edit Routine Jar Libraries' to add the required jars.

Regards

Shicong

YunusEmre
Partner - Contributor II
Partner - Contributor II
Author

thanks your reply. I'm not writing code in a user routine, i am trying run my code in tjava component.

I think that i imported jar files correctly because i can see dependecies in the java build path. I have checked also their versions they are correct too.

 

YunusEmre_0-1732530509521.png

 

Shicong_Hong
Employee
Employee

Another thing to check is whether the version of the jar file is compatible with the current version of JAVA being used.

YunusEmre
Partner - Contributor II
Partner - Contributor II
Author

I've added libraries to project settings. Should i also add its to job with tLibraraLoad?