我在 java 中使用 pdfbox 将 pdf 转换为图像。但是当我编译时,我得到了消息
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
.
Here is the code I am following .请帮助我摆脱这个错误。
最佳答案
您需要 Apache Commons Logging类路径上的库。
您可能错过了所有 dependencies of PDFBox :
PDFBox 的最低要求
- Java 1.5
- 公共(public)日志记录
关于java - 线程 "main"java.lang.NoClassDefFoundError : org/apache/commons/logging/LogFactory 中的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7555185/