public JavaCommand(String mainClassName,ClassPath classPath,String... mainArgs){
  this(mainClassName,classPath,null,null,mainArgs);
}

public JavaCommand ( String mainClassName , ClassPath classPath , String ... mainArgs ) { this ( mainClassName , classPath , null , null , mainArgs ) ; }
creates a new javacommand that will execute a new java process with desired classpath and main arguments .
