2

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?

1 Answer 1

9

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
Sign up to request clarification or add additional context in comments.

1 Comment

@gh0st Then now the idea is to upvote and accept this answer :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.