Can you reproduce it? Google shows occurences of that exception (unknown err 512 in FileInputStream.readBytes) happening when the java process has been set to run in the background, when reading from the console. Were you doing anything like that? (eg running with & after the command or pressing ctrl-z) --