I have following structure in jar
myjar.jar -> com -> MYProgram.class
-> file.txt
In MYProgram i am trying to do:
getClass().getResourceAsStream("../file.txt")
I am getting NullpointerException when i try to read the inputstream..
Where is it going wrong ?