Java interface for R