hi all
I'm trying to use appletviewer to run my
applet and i'm getting that exception.
i have the file janApplet.class and janAppletHtml.html in the directory c:\com\cpcc
I'm typing the following command at prompt:
>c:\jdk1.2.2\bin\appletviewer -classpath c:\com\cpcc C:\com\cpcc\janAppletHtml.html
here are the two files:
--------------------------------
<HTML>
<HEAD>
<title>Hello World Applet</title>
</HEAD>
<BODY>
<applet codebase="c:\com\cpcc"code="janApplet.class" width=300 height=100>
</applet>
</BODY>
</HTML>
-------------------------------
import java.applet.*;
import java.awt.*;
public class janApplet extends Applet
{
public void init()
{
Button b=new Button();
add(b);
}
}
please let me know what is the problem.
thanks.