How to stop "no main class found" error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • divya shree
    New Member
    • Jun 2011
    • 1

    How to stop "no main class found" error

    if run the program ,i am getting no main class found
    eg:
    Code:
    class top
    {
      public static void main(Sting args[])
    {
     System.out.println("HEllo");
    }
    }
    Last edited by Meetee; Jun 17 '11, 06:50 AM. Reason: code tags added
  • plsHelpMe
    New Member
    • Jan 2008
    • 58

    #2
    Make your class public and try compiling again.

    Comment

    Working...