Hai Narayana,
In eclipse it won't take automatically the command line arguements. You need to set explicitly for that program. We have an option in Eclipse for setting the Command Line arguments.
Steps :
1) Right Click on the Program. In the popup Click on the Run AS Option.
2) From where you can click on , Open Run Dialog.
3) After opening the Menu, Here we have Arguments tab is there . In that tab you have to give the Command Line arguments.
4) Then, finally click on the RUN Button.
5) Then it will executed.