title: this.getClass().getResource("").getPath() returns an incorrect path
body: <p>I am currently making a small simple Java program for my Computer Science Final, which needs to get the path of the current running class. The class files are in the C:\2013\game\ folder.</p>
  
  <p>To get this path, I call this code segment in my main class constructor:</p>
  
  <pre><code>public game(){
      String testPath = this.getClass().getResource("").getPath();
      //Rest of game
  }
  </code></pre>
  
  <p>However, this command instead returns this String:  "/" despite the correct output being "C:/2013/game"
  Additionally, I attempted to rectify this by using this code: </p>
  
  <pre><code>public game(){
      String testPath = this.getClass().getClassLoader().getResource("").getPath();
  }
  </code></pre>
  
  <p>This returns a NullPointerException, which originates from the fact that getClassLoader() returns null, despite working on my Eclipse IDE. Any Ideas?</p>