try putting the file one directory back and see if it will pick it up then. If that doesn't work then you need need to do something like this:
File f = new File("primary.input");
Let us know what it prints out. I have a suspicion on what it is but I'd like to have that printed out before I say.