title: How to get rid of the starting slash in URI or URL?
body: <p>I am using </p>
  
  <pre><code>URL res = this.getClass().getClassLoader().getResource(dictionaryPath);
  String path = res.getPath();
  String path2 = path.substring(1);
  </code></pre>
  
  <p>because the output of the method getPath() returns sth like this: </p>
  
  <pre><code> /C:/Users/......
  </code></pre>
  
  <p>and I need this</p>
  
  <pre><code> C:/Users....
  </code></pre>
  
  <p>I really need the below address because some external library refuses to work with the slash at the beginning or with file:/ at the beginning or anything else.</p>
  
  <p>I tried pretty much all the methods in URL like toString() toExternalPath() etc. and done the same with URI and none of it returns it like I need it. (I totally don't understand, why it keeps the slash at the beginning). </p>
  
  <p>It is okay to do it on my machine with just erasing the first char. But a friend tried to run it on linux and since the addresses are different there, it does not work...</p>
  
  <p>What should with such problem?</p>