• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No such method? Kathy & Bert's book p. 78-79

 
Linda Pan
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have compiled and run the following code:

I get a run-time error of: "Exception in thread "main" java.lang.NoSuchMethodError: main". I was expecting a clean run. What happened?
 
Arvind Varma
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should include a main() method to signify the entry point of the application
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no main() method here.
 
Linda Pan
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I had thought. Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic