8 Replies Latest reply: Sep 25, 2008 1:59 AM by masijade RSS

    Exception in thread "main" java.lang.NoSuchMethodError: main

    695201
      code is shown below:
      import java.awt.*;
      import java.applet.*;
      public class Applet1 extends Applet
      {
      public void paint(Graphics g)
      {
      g.drawString("HelloJava ",10,100);
      }
      }
      runtime error:Exception in thread "main" java.lang.NoSuchMethodError: main
      OS:mandrake