You have the main method in the MailClient.java. The only way I know to get that error is if you accidentally try to run a class with no main, so I would say try it again and make sure you run the MailClient class.
Mattox
Junior Poster in Training
57 posts since Jan 2011
Reputation Points: 10
Solved Threads: 15
Mattox is right. It's probably a problem in your run configuration. In particular check that your "main class" is MailClient in the run configurations dialog.
see if ... its just eclipse being a pain
The usual way that Eclipse is a "pain" is because it insists on helping you to have an error-free program and configuration. The chances of it being an Eclipse error rather than your own are roughly on a par with winning the lottery...when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate
No. You do not get that error trying to compile anything. The distinction between compile-time errors and runtime errors is important.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073