用E写了一个APP小程序后.在HTML里打不开
用APPLETVIEWER在命令行时候在小程序最下端里出现
未初始化小程序 的提示.
抛出的异常是NoClassDefFoundError,
程序代码如下
package ceshi;import java.awt.*;
import java.awt.event.*;
import java.applet.*;public abstract class Ceshi extends Applet implements ActionListener{
private Button quit = new Button();
private Button click = new Button();
private TextField text = new TextField();
public void init()
{
quit=new Button();
click=new Button();
text=new TextField();
setLayout(new FlowLayout());
add(quit);
add(click);
add(text);
quit.addActionListener(this);
click.addActionListener(this);
}
public void start()
{
text.setText("start");
}
public void stop()
{
text.setText("stop");
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==quit)
text.setText("no quit");
else if (e.getSource()==click)
text.setText("click now");
} }
希望高手帮帮忙.