Using Apache PDFBox in Oracle JVM

六月ゝ 毕业季﹏ 提交于 2020-01-03 04:55:08

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!