A bunch of stupid rJava code