Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse problem

 
Arjun Palanichamy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...


I have using Eclipse IDE ,long time.but few days back i was bulid the GWT in my eclipse.when this started time not working my eclipse.the getting error
" The Selection does not Contain a main type" what is this problem.how to recaver it.

Thanks to Advance.

Arjun Palanichamy.
chennai.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49431
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apart from your posting on the wrong forum . . .

When you run an app from Eclipse (right-click->Run->Run as Java Application), the IDE looks for a main method, and in your case failed to find one. This is analogous to "Exception in thread "main" java.lang.NoSuchMethodError: main."

Please check you have a main method with the correct heading.Then it ought to work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic