I am new to Applets, and have the following basic Applet, which works fine in Eclipse.
import java.applet.*;
import java.awt.Graphics;
public class Sound extends Applet
{
public void paint(Graphics g){
super.paint(g);
g.drawString("MESSAGE", 100, 100);
}
}
I am using the following to include it in my HTML:
<APPLET ARCHIVE="file:C:\Projects\Dresscode\www\Dresscode\SoundApplet.jar" CODE="Sound.java" width="300" height="500">
I am getting a:
Security Exception, Permission Denied Error
I have read about self-signing, the manifest and many other possible reasons for this error, but have not been able to accurately diagnose the problem.
The applet is not requesting any reads or writes so should not require high security?
From my understanding Applets are commonly used on web pages, so why am I having such problems and such difficulty diagnosing the problem-I would expect it to be a reasonably simple fix. And can anyone suggest a solution to me?