Results 1 to 2 of 2
  1. #1
    er1c550n20 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default Applet Programming

    I am using Jcreator or JDK1.5 for compiling and running java programs. Normal stand alone programs are not showing any problem but when ever I am trying to compile and run Applet programs I am getting these errors
    " java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Process completed." . I have written more than 10 applet programs I am getting same error. Though its not showing any error during compilation or running. The error is displayed few seconds after program is successfully run.

    PLZ HELP

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by er1c550n20 View Post
    I am using Jcreator or JDK1.5 for compiling and running java programs. Normal stand alone programs are not showing any problem but when ever I am trying to compile and run Applet programs I am getting these errors
    " java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Process completed." . I have written more than 10 applet programs I am getting same error. Though its not showing any error during compilation or running. The error is displayed few seconds after program is successfully run.

    PLZ HELP
    You can't run an Applet or JApplet as if it were an application; you either need the appletviewer tool (it comes with your JDK) or a browser to run your (J)Applet.

    kind regards,

    Jos

Similar Threads

  1. Socket applet programming error?
    By Master Zero in forum Java Applets
    Replies: 6
    Last Post: 10-05-2011, 09:15 PM
  2. Socket programming using applet
    By nccsbim071 in forum Java Applets
    Replies: 0
    Last Post: 08-20-2009, 11:35 AM
  3. Applet Programming
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 02-11-2008, 04:04 PM
  4. Java Applet 3D programming
    By ramk in forum Java Applets
    Replies: 0
    Last Post: 11-28-2007, 10:36 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •