public static void main(String[] args){
  if ((args.length == 1) && SystemUtils.IS_OS_WINDOWS) {
switch (args[0]) {
case "start":
      start(args);
    break;
case "stop":
  stop(args);
break;
default :
startCMR();
}
}
 else {
startCMR();
}
}

public static void main ( String [ ] args ) { if ( ( args . length == 1 ) && SystemUtils . IS_OS_WINDOWS ) { switch ( args [ 0 ] ) { case "start" : start ( args ) ; break ; case "stop" : stop ( args ) ; break ; default : startCMR ( ) ; } } else { startCMR ( ) ; } }
main method of class .
