title: getResource will always return null
body: <p>This is driving me crazy. I have a simple eclipse project with a src folder and a class in it. But I can't seem to get getResource to find it. What am I doing wrong?</p>
  
  <pre><code>import java.net.URL;
  
  public class ContextTest {
  
      public static void main(String[] args) {
          URL url = ContextTest.class.getResource("/src/ContextTest.java");
          System.out.println(url);
      }
  }
  </code></pre>
  
  <p>If I right-click on the class name, the path is <code>/TestsProject/src/ContextTest.java</code> and the default classpath according to the Classpath tab in Run Configurations is <code>TestProject</code>.</p>
  
  <p>It doesn't work with <code>/bin/ContextTest.java</code> , <code>/ContextTest.java</code> , <code>ContextTest.java</code> either.</p>