title: getClass().getClassLoader().getResource(path) always return null, even when the path is correct
body: <p>I am using Java project to do this not a dynamic web project and I just placed my <em>.wav</em> file to directly project(on project name right click n paste).  </p>
  
  <p>I tried to read many posts but of no use. help me on this. I tried to read many posts but of no use.</p>
  
  <pre><code>try{
        // Open an audio input stream.
        URL url = this.getClass().getClassLoader().getResource("Rain.wav");
        System.out.println("url:"+url);
        AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);
        // Get a sound clip resource.
        Clip clip = AudioSystem.getClip();
        clip.open(audioIn);
        clip.start();
        /* clip.loop(Clip.LOOP_CONTINUOUSLY);  */
   } catch (UnsupportedAudioFileException e) {
        e.printStackTrace();
   }
  </code></pre>