• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mulugeta Maru
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am rather confused about this issue. I was able to compile the folllowing code:



When I try to run it I get above error. Any idea why?

My class pathe is set as follows:



Thank you for you help.

Maru
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maru,
When you run it, are you running it as:

 
Mulugeta Maru
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Thank you for you help. The problem is the way the class path is set up. I made changes to the class path and it works.

Maru
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic