title: java.io.NotSerializableException: sun.nio.fs.WindowsPath - how to fix it?
body: <p>I wrote a simple serialization function in order to store a fileTree representation (based on the composite pattern...), but always get following error:</p>
  
  <pre><code>        java.io.NotSerializableException: sun.nio.fs.WindowsPath
  </code></pre>
  
  <p>Unfortunately I couldn't figure out so far how to fix that - anyone else encountered that?</p>