Check the PDF's file path that your program is about to read, most likely using relative pass causes the problem.

java exception