Try the -D option, allows you to set a key = value pair:
execute a command; note that between -Dkey
java -Dday = Friday -Dmonth = Jan MainClass
In ur ββcode:
String day = System.getProperty("day"); String month = System.getProperty("month");
Arvind
source share