The POI download page has a link to archives.
https://poi.apache.org/download.html#archive Somewhere in the 3.1x range they started changing some classes to use enums. That requires changes on the RPG side. I think 3.14 may be the last safe version.
On Wed, 2020-06-24 at 15:42 -0500, K Crawford wrote:
I am trying to get the sample program POI36/XLCRTDEMO to work.
I am getting this message:
RNQ0301
Message . . . . : Java exception received when calling Java method (C G D
F).
Cause . . . . . : RPG procedure XLCRTDEMO in program POI36/XLCRTDEMO
received Java exception "java.lang.NoClassDefFoundError:
org.apache.poi.xssf.usermodel.XSSFWorkbook" when calling method "<init>"
with signature "()V" in class
"org.apache.poi.xssf.usermodel.XSSFWorkbook".
I saw in the archives someone with this same issue. The solution was to
make sure the class path was set correctly. It talks about
'/java/poi-3.11/poi-3.11-20141221.jar'.
on the Apache POI the version that is available is 'poi-4.1.2/poi-4.1.2.jar'
I have this in '/java/poi-4.1.2/poi-4.1.2.jar'
I have signed off and on.
Entered the command ADDENVVAR ENVVAR(classpath)
VALUE('/java/poi-4.1.2/poi-4.1.2.jar')
then called the XlCrtDemo program.
Is my issue it must be poi-3.11? If so, where do I get it?
I have not installed DOM4J or XMlBeans. Could that be the issue? I was
unclear if they were needed.
--
Kerwin Crawford
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.