You need to know in which directory the code is searching for the file:
Do this:
To get current path: System.out.println(new File(".").getAbsoluteFile());
This will show you the path where the java code is looking for files. Reference your file using relative path starting from this location. Cheers