Unable to Determine if Root Directory Exists
<p>I have the (probably pretty common) use case that I want to create a folder on a shared drive:</p>

<pre><code>public static void main(final String[] args) throws IOException {
    final Path path = new File("H:\\test-folder").toPath();
    Files.createDirectories(path);
}
</code></pre>

<p>I get the following exception:</p>

<pre><code>Exception in thread "main" java.nio.file.FileSystemException: H:\test-folder: Unable to determine if root directory exists
  at java.nio.file.Files.createDirectories(Unknown Source)
  at org.acme.project.Main.main(Main.java:15)
</code></pre>

<p>(The weird part here is that this exception is practically unknown by Google.)</p>

<p>The problem seems to be entirely Eclipse's fault, since the above code runs perfectly from the command line. But since I need it inside an Eclipse plug-in this information is entirely irrelevant to me. I just need it to work.</p>

<p>So what do I need to do to create folders on network drives?</p>