The JVM has a 'current working directory' which is something other than you believe it to be. Search online for pages about it. There'll be a lot. My first guess at how to find out what it is is to...