Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为将使用 PDFBox 的服务器编写一个小程序。我正在使用 NetBeans 在 Windows 下编写代码。将 PDFBox jar 导出到服务器后,如何将其添加到我的程序 jar 中?
您不一定必须放入pdfbox.jar应用程序的 jar 中。将它们分开更容易,只需在运行之前将它们都添加到类路径中。
pdfbox.jar
例如,将两个 jar 放在同一目录中并运行:
$ java -cp myapp.jar:pdfbox.jar app.MainClass args