This patches fixes bug #6904882. As suggested by Phil it puts the whole static initializer in a privileged block, grouping the existing 4 smaller blocks into one, and importantly including the offending File.exists() call. This requires to make the static fields non-final.
http://cr.openjdk.java.net/~rkennke/6904882/webrev.00/ Ok to commit? /Roman