问题
I'm trying to load the Apache PDFBox Java libraries into the Oracle JVM but seem to get lost in unresolved dependencies. Did someone success to load PDFBox 2.0.8 into a Oracle 12.2 JVM?
回答1:
It’s mostly a problem on how to resolve the java dependencies and once that’s done, everything works as expected by loading the packages in the following order:
1) Load the “Bouncy Castle” dependencies
loadjava -resolve -user scott/tiger@localhost:1521:orcl -thin bcprov-jdk15on-158.jar bcmail-jdk15on-158.jar bcpkix-jdk15on-158.jar
2) Load “Apache common logging”
loadjava -resolve -genmissing -user scott/tiger@localhost:1521:orcl -thin commons-logging-1.2.jar
3) Load “Apache PDFBox”
loadjava -resolve -user scott/tiger@localhost:1521:orcl -thin fontbox-2.0.8.jar pdfbox-2.0.8.jar pdfbox-tools-2.0.8.jar pdfbox-debugger-2.0.8.jar
And now using PDFBox works like a charm!
来源:https://stackoverflow.com/questions/47788278/using-apache-pdfbox-in-oracle-jvm