title: Access Control Exception: access denied( "java.io.FilePermission" "[image]" "read")
body: <p>I'm on my first week using Java. I don't know very much about applets, and I'm trying to learn more using a book. I've already done some applets that contain simple animation, but when I tried drawing an image I've got stock on this: </p>
  
  <blockquote>
    <p>access denied( "java.io.FilePermission" "[image]" "read").</p>
  </blockquote>
  
  <p>Anyone who can help me?</p>
  
  <pre><code>    import java.awt.Graphics;
      import java.awt.Image;
  
      public class Wave extends java.applet.Applet{
  
          Image waveimg;
  
          public void init(){
  
              waveimg=getImage(getCodeBase(),"wave.jpg");
  
          }
  
          public void paint(Graphics g){
  
              g.drawImage(waveimg, 10,10,this);
  
          }
    }
  </code></pre>