Hello
I am evaluating your Spire.DOC - Java verison (Spire.Doc_12.1.16) and have encountered an error with your first sample program (\01_quickGuide\helloWorld.java). The details below show that we are running on an IBM i using JDK11. Then the java error listing shown. I have made the line in bold that I believe is the best clue as to the source of the error.
I would greatly appreciate any help you can provide on this issue. Your product looks like it will help us in one of processes and I would like to know that so that we can then purchase a license. I am wondering if the issue would be specific to our IBM i but am not sure what tests to do to prove that or what to change on it to allow the writing of the data to work.
details below for your review:
There is a file created in the directory named "helloWorld.doc" bit it is 0 bytes long.
When I run on Windows 11, everything works.
When I run from our IBM i, this error happens.
here is the information on the environment:
> /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit/bin/java -version
java version "11.0.17" 2022-10-18
IBM Semeru Runtime Certified Edition (build 11.0.17+8)
Eclipse OpenJ9 VM (build openj9-0.35.0, JRE 11 OS/400 ppc64-64-Bit Compressed References 20221115_000000 (JIT enabled, AOT enable
d)
OpenJ9 - e04a7f6
OMR - 85a2167
JCL - 2767d3a based on jdk-11.0.17+8)
$
here is the command i am running.
i have "hard coded" the JAVA path (same path used for JAVAC also). since our main setup has JDK8 running. i have tried JDK8 and JDK11 and they both have this same error. I did have to use the java.awt.headless=TRUE in order to avoid an error with X11 trying to load on the JDK11. That error did not happen with JDK8.
/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit/bin/java -Djava.awt.headless=true -cp '../*:./' helloWorld
this is the error:
> /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit/bin/java -Djava.awt.headless=true -cp '../*:./' helloWorld
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.base/java.lang.J9VMInternals.ensureError(J9VMInternals.java:206)
at java.base/java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:195)
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.packages.sprnyw.spr (Unknown Source)
at com.spire.doc.packages.sprnyw.spr (Unknown Source)
at com.spire.doc.packages.sprcuw.spr§©(Unknown Source)
at com.spire.doc.packages.sprcuw.spr ©(Unknown Source)
at com.spire.doc.packages.sprkuw.spr (Unknown Source)
at com.spire.doc.packages.sprxht.spr (Unknown Source)
at com.spire.doc.packages.spraat.spr (Unknown Source)
at com.spire.doc.packages.sprdmr.spr (Unknown Source)
at com.spire.doc.packages.sprdmr.spr (Unknown Source)
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.DocumentObject.spr (Unknown Source)
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.packages.sprdmr.spr (Unknown Source)
at com.spire.doc.packages.sprrkw.spr (Unknown Source)
at com.spire.doc.packages.sprrkw.spr (Unknown Source)
at com.spire.doc.packages.sprrkw.spr¬ (Unknown Source)
at com.spire.doc.Document.spr (Unknown Source)
at com.spire.doc.Document.saveToFile(Unknown Source)
at helloWorld.main(helloWorld.java:21)
Caused by: class com.spire.doc.packages.sprkoj: Unrecognized OS: OS/400, V7R5M0,
com.spire.doc.packages.sprogq.spr (Environment.java:230)
com.spire.doc.packages.sprzmj.spr (Unknown Source)
com.spire.doc.packages.sprzmj.spr (Unknown Source)
com.spire.doc.packages.sprqzw.<init>(Unknown Source)
com.spire.doc.packages.sprbuw.<init>(Unknown Source)
com.spire.doc.packages.sprbuw.<clinit>(Unknown Source)
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.packages.sprnyw.spr (Unknown Source)
com.spire.doc.packages.sprnyw.spr (Unknown Source)
com.spire.doc.packages.sprcuw.spr§©(Unknown Source)