If args cannot be resolved then you did not call your parameter in the main method args. Please post your full code and use code tags