public JavaEnvironment(File javaPath){
  Objects.requireNonNull(javaPath);
  this.javaPath=javaPath;
}

public JavaEnvironment ( File javaPath ) { Objects . requireNonNull ( javaPath ) ; this . javaPath = javaPath ; }
creates a javaenvironment with the given ' java ' path .
