Don pointed out that you are using the absolute path. This is problem.
By default, the working directory in Eclipse is the path to the project where your program is running.
You can always find out the working directory by specifying this property:
System.out.println(System.getProperty("user.dir"));
source share