title: Converting linux path to windows path
body: <p>I'm looking for a way to map every linux directory absolute path to a windows path.
  for example: whenever my app is accessing <code>/var/log</code> , it will actually access <code>c:/base-folder/var/log</code> .</p>
  
  <p>My Java app was written in a way that only linux machines can run it. One of the reasons for this constraint is the filesystem paths. I cannot change all paths to a relative paths.</p>
  
  <p>The solution can be in OS level (e.g running from command line <code>cd /var/log</code> will open <code>c:/base-folder/var/log</code> ) or Java level (<code>new File("/var/log"</code>) equals to <code>new File("c:/base-folder/var/log")</code> ).</p>
  
  <p>Writing javaagent that changes File and Path classes is not possible, as my app is already running with different javaagent.</p>
  
  <p>Using the built in ubuntu on windows won't work either, because the IDE is on windows.</p>