rJava from CRAN modified to work with TERR