I'm trying to use jPDFText.jar from Qoppa (http://www.qoppa.com/pdftext/jptindex.html).
I've used java libraries before, but I'm having a problem with this one.
Relevant service program lines:
Program usage:
I get this error:
...but when I run STRQSH CMD('javap -s com.qoppa.pdfText.PDFText'), I can see this signature (along with others):
To me, my signature matches the one seen in javap output. Why is the error being thrown?
I've used java libraries before, but I'm having a problem with this one.
Relevant service program lines:
Code:
D PdfText S O CLASS(*JAVA D :'com.qoppa.pdfText.PDFText') D PdfPassword S O CLASS(*JAVA D :'com.qoppa.pdf.PDFPassword') ... D new_PdfText... D PR like(PdfText) D ExtProc(*JAVA D :'com.qoppa.pdfText.PDFText' D :*CONSTRUCTOR) D inFileName like(jString) D inPDFPassword like(PdfPassword) D new_PdfPassword... D PR like(PdfPassword) D ExtProc(*JAVA D :'com.qoppa.pdf.PDFPassword' D :*CONSTRUCTOR) D inString like(jString)
Code:
#lcstmf = tgdpath; #lcstmfj = new_String(%trim(#lcstmf)); #lcpwdj = new_String(#lcblank); #lcpdfpwd = new_PdfPassword(#lcpwdj); #lcdocument = new_PdfText(#lcstmfj:#lcpdfpwd);
Code:
Message . . . . : Java exception received when calling Java method. Cause . . . . . : RPG procedure SOR005 in program WORKLIBR/SOR005CL receiv Java exception "java.lang.NoSuchMethodError: < init >" when calling method "< init >" with signature "(Ljava.lang.String;Lcom.qoppa.pdf.PDFPassword;)V" in class "com.qoppa.pdfText.PDFText".
Code:
public com.qoppa.pdfText.PDFText(java.lang.String, com.qoppa.pdf.IPassword) throws com.qoppa.pdf.PDFException; Signature: (Ljava/lang/String;Lcom/qoppa/pdf/IPassword;)V
Comment