Use Java 7's new file system API where possible.

Also fixed a few places where the SFML error stream was not being captured yet.

Signed-off-by: Patrick Dinklage <pdinklag@googlemail.com>