127 means there is a parsing exception. Errors can be detected using code
c.assign(".tmp.", myCode);
REXP r = c.parseAndEval("try(eval(parse(text=.tmp.)),silent=TRUE)");
if (r.inherits("try-error")) System.err.println("Error: "+r.toString())
else { // success .. }
The possible problems are:
1. There is a problem with the R program called, and it will be fine after the R program is changed.
2. Some people's jar package is loaded wrong, it is loaded in R.
I ran the code in the R editor and found the problem: