Can't get the first example to work
I just started "Beginning Java 2" and I am trying to get the applet in the first example to run. When I execute "appletviewer MyFirstApplet.HTML", the window pops up, but I get the message "applet not inialized" at the bottom.
In the command box, I get a bunch of message, starting with
java.lang.ClassFormatErro: first1 (Bad magic number)
Here is first1.class:
public class first1 extends JApplet
public void paint(Graphics g)
g.drawString("To climb a ladder, start at the bottom rung", 20, 90);
Thanks for any help.