title: Applet: Loading image in jar file that is not in home directory
body: <p>this title may sound confusing so I'll explain my problem.
  I am converting my java application to an applet, and it works fine in Eclipse and when I make a html file with  tags. But when I upload my applet to <a href="https://sites.google.com/site/projectteagame/tea.jar" rel="nofollow">google sites</a> and execute it via a html file, the program itself loads fine, but it tries to load its images from my own hard disk instead of from the JAR file. How can I change that?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;applet
  archive="https://sites.google.com/site/projectteagame/tea.jar"
  code="ymte.core.Loader"
  width=300
  height=300&gt; &lt;/applet&gt;
  </code></pre>
  
  <p>Edit:</p>
  
  <p>I keep all my files in the jar, for speed and ease. My code to obtain the images is:</p>
  
  <p><code>img = ImageIO.read(Loader.class.getResourceAsStream("/res/object/ball.bmp"));</code></p>
  
  <p>This works in my IDE, but not in the online use</p>