R and Java