• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the error "Exception in thread "main" java.lang.NoSuchMethodError: main" while trying to run  RSS feed

 
Liju Tom
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to Java , was trying to run a code given in "Head First Java".

While trying to run the below code I'm getting the error "Exception in thread "main" java.lang.NoSuchMethodError: main".

Below is the code.

 
R. Jain
Ranch Hand
Posts: 375
1
Java Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Liju Tom wrote:

This code on it's own will neither run as an Applet, nor as a simple Java class.
This code must be a simple code segment to demonstrate the use of Panel in AWT.

you should go back and see how a simple Applet code is written and run.. (What a class needs to do to become an Applet)
See Defining an Applet Subclass for more details..
 
Liju Tom
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys thanks for the help.
Amazing!! I didn't expect the reply to be this fast
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!