This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error in Object Creation?" Watch "Error in Object Creation?" New topic
Author

Error in Object Creation?

Phillipe Rodrigues
Ranch Hand

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

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



Thanks,
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11817
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Object Creation?
 
jQuery in Action, 3rd edition