Error in running the code

Hello,
I am getting this error in Eclipse that it cannot load the main class test. However, this code is working fine in the command prompt. So can you please tell me what changes should I make in Eclipse to run the code?

If this problem occurs in Eclipse only, restarting eclipse once and executing command Project -> Clean… on selected project may help.
If this doesnt help go through this