i am not able to execute applets. i have written the following program.
import java.awt.*;
import java.applet.*;
/*
<applet code="sampleapplet" width=200 height=60>
</applet>
*/
public class sampleapplet extends Applet
{
public void paint(Graphics g)
{
g.drawString("simple applet",30,30);
}
} :?:
javac sampleapplet.java
appletviewer sampleapplet
The following error is displayed:
I/O exception while reading:e:\582\sampleapplet ( system cannot find the specified path.
note: location specified javafile is E:\582