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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Fernandez
Creator II
Creator II

Import Java library error

Hi,

I would like to create a routine using the library Apache PDFBox

™.

I get an error with using "import org.Apache.pdfbox" in the code.

0695b00000LwaYJAAZ.png

Thanks for your help !

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Your import is incorrect. Apache shouldn't be capitalised. The import should have this structure....

 

import org.apache.pdfbox.pdmodel.PDDocument;

 

As seen here....

0695b00000LwckbAAB.png

View solution in original post

4 Replies
Anonymous
Not applicable

You need to add the library to the routine like this....

 

https://help.talend.com/r/en-US/7.2/studio-user-guide-open-studio-for-data-integration/editing-user-routine-libraries

 

Then your Java imports will work.

Fernandez
Creator II
Creator II
Author

Thanks for the link.

I did it but I still get the issue.

Below the screenshots where we can see the library has been installed:

 

 

0695b00000LwcbfAAB.png 

0695b00000LwcfMAAR.png

Anonymous
Not applicable

Your import is incorrect. Apache shouldn't be capitalised. The import should have this structure....

 

import org.apache.pdfbox.pdmodel.PDDocument;

 

As seen here....

0695b00000LwckbAAB.png

Fernandez
Creator II
Creator II
Author

Many thanks.

It's working fine !