Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in Object Creation?  RSS feed

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For below code why i get erro

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

 
lowercase baba
Bartender
Posts: 12610
50
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are you typing on your command line? are you running "java A" or "java B"?
 
A teeny tiny vulgar attempt to get you to buy our stuff
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!