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 を使用してウィンドウの下で書いています。サーバーにエクスポートしたら、PDFBox jar をプログラム jar に追加するにはどうすればよいですか?
pdfbox.jar必ずしもアプリケーションの jarに入れる必要はありません。それらを別々に保ち、実行する前に両方をクラスパスに追加する方が簡単です。
pdfbox.jar
たとえば、両方の jar を同じディレクトリに配置して実行します。
$ java -cp myapp.jar:pdfbox.jar app.MainClass args