File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Help
Child extends Parent, Belongs to same package, Cannot access public variable
problem on extending a class declared on the same package!!
query on method over riding