 <p>The Exception is occurring when <code>MediaPlayer</code> in package <code>mediaplayer</code> calls for an embedded resource at <code>"icons/exit.png"</code>. This would resolve to a path of:</p> <pre><code>mediaplayer/icons/exit.png </code></pre> <p>I am guessing that is not the path, which is <em>actually</em>.</p> <pre><code>icons/exit.png </code></pre> <hr> <p>That is why the <code>String</code> needs to be <strong><code>"/icons/exit.png"</code></strong> - note the <strong><code>/</code> prefix.</strong></p> <p>The <code>/</code> that precedes the <code>String</code> informs the class-loader that we mean it to search for the resource from the root of the class path, as opposed to the package of the class from which it is called.</p>