I ve placed a pdf docment in the same place of my java class but I still got a NullPointer error. I need to place the pdf document in the same place of my class. this's my code:
private static final String sourcePath = "rockTest.pdf";
inputStream = MyClass.class.getResourceAsStream(sourcePath);
sourcePath is the name of the pdf document.
thanks