Unify command line between java and R.

The parameter -XX:ReservedCodeCacheSize=256m added.
Fix of PUB-144: Corrected rescaling logic in GBM

FIx is based on
http://www.hongliangjie.com/2011/01/07/logsum/