This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes No such method? Kathy & Bert's book p. 78-79 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "No such method? Kathy & Bert Watch "No such method? Kathy & Bert New topic
Author

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

Linda Pan
Ranch Hand

Joined: Sep 24, 2001
Posts: 96
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

Joined: Dec 24, 2002
Posts: 48
you should include a main() method to signify the entry point of the application
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
There is no main() method here.
Linda Pan
Ranch Hand

Joined: Sep 24, 2001
Posts: 96
That's what I had thought. Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No such method? Kathy & Bert's book p. 78-79
 
Similar Threads
Referencing a Parent variable from a Child subclass in a different package
problem on extending a class declared on the same package!!
Help
Child extends Parent, Belongs to same package, Cannot access public variable
query on method over riding