This type of error generates only when there is no main method in our application.
Just check your code and checkout the spelling of main()
It must look like
Code:
public static void main(String[] arg)
Or it may be possible that you haven't imported it correctly
the following steps are to import project in eclipse
click
File->Import
select General Option from tree list
click existing projects into workspace->next
select
"select root directory" radio button and click "Browse"
now select the folder where your project is exist
suppose I have copied that lesson3 folder inside f:\p2ptest folder
then I have selected it from f:\p2ptest\Lesson3 and then click "ok"
after that click "Finish"
Now you can run your project