public Executor(Logger logger,File cmd){
  this.logger=logger;
  this.cmd=cmd.getAbsolutePath();
}

public Executor ( Logger logger , File cmd ) { this . logger = logger ; this . cmd = cmd . getAbsolutePath ( ) ; }
creates a new instance which will execute the specified command .
