Thorsten Moeller Paths.get(System.getProperty("java.home")) makes no difference - no exception is thrown.
Another question: on which platform(s) did you ran that test - Mac OS, Linux, Win?
Linux.