Hi, I have the following code:
import java.awt.*;
import java.applet.*;
public class Button1 extends Applet {
Button
b1 = new Button("Button 1"),
b2 = new Button("Button 2");
public void init() {
add(b1);
add(b2);
}
}
When i compile it, everything going alright, but when i execute it the following error appear:
exception in thread main java.lang.nosuchmethoderror: main
why?
Thanks.