How to use this.getClass().getResource(String)?
<p>I cant understand what the error of this code. </p>

<pre><code>public void run(String url) {

        try {
            FileInputStream file;
            file = new FileInputStream(this.getClass().getResource(url));
            Player p = new Player(file);
            p.play();
        }catch(Exception e){
            System.err.print( url + e);
        }
    }
</code></pre>

<p>when i try to run it, it says me "no suitable constructor found for FileInputStream(URL)". Why its happening?</p>
