title: Path component should be '/'
body: <p>I'm trying to create a <code>FileSystem</code> object to hold an ext2 filesystem. My <code>URI</code> seems to be invalid, giving me a <strong>path component should be '/'</strong> run time error. </p>
  
  <p>I'm using Windows and have my project in Eclipse, with a subdirectory called "fs" that holds the filesystem image.</p>
  
  <p>My code...</p>
  
  <pre><code>URI uri = URI.create("file:/C:/Users/Rosetta/workspace/filesystemProject/fs/ext2");
  /* uri holds the path to the ext2 file system itself */         
  
  try {
      FileSystem ext2fs = FileSystems.newFileSystem(uri, null);
  } catch (IOException ioe) {
      /* ... code */
  }
  </code></pre>
  
  <p>I have loaded the filesystem as a <code>File</code> object and used the <code>getURI</code> method to make sure my <code>URI</code> is the same as the actual <code>URI</code>, and it is.</p>
  
  <p>How can I get the filesystem loaded?</p>
  
  <p>EDIT:</p>
  
  <p>Stack trace below</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Path component should be '/'
      at sun.nio.fs.WindowsFileSystemProvider.checkUri(Unknown Source)
      at sun.nio.fs.WindowsFileSystemProvider.newFileSystem(Unknown Source)
      at java.nio.file.FileSystems.newFileSystem(Unknown Source)
      at java.nio.file.FileSystems.newFileSystem(Unknown Source)
  </code></pre>