File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Error in Object Creation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error in Object Creation?" Watch "Error in Object Creation?" New topic

Error in Object Creation?

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
For below code why i get erro

java.lang.NoSuchMethodError: main
Exception in thread "main"

fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 10916

what are you typing on your command line? are you running "java A" or "java B"?

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
jQuery in Action, 2nd edition
subject: Error in Object Creation?
Similar Threads
How to decide whether use IS A or HAS A Relation
Object creation
Certification4Career SCJP Mock Exam Errors??
object Vs instance