Java + PDFBox on Linux

发布于 2022-09-06 13:49:48 字数 189 浏览 19 评论 0

I need to write a small program for a server which will use PDFBox. I'm writing under windows with NetBeans. How do I add PDFBox jar to my program jar once I export it to the server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满身野味 2022-09-13 13:49:49

You don't necessarily have to put pdfbox.jar into your application's jar. It's easier to keep them separate and just add them both to your classpath before running it.

For example, place both jars in the same directory and run:

$ java -cp myapp.jar:pdfbox.jar app.MainClass args
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文