https://github.com/hannarud/r-best-practices/wiki/Installing-RJava-(Ubuntu)
sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+
java --version
sudo apt install default-jre
sudo apt install default-jdk
sudo R CMD javareconf
sudo apt-get install r-cran-rjava
sudo apt-get install libgdal-dev libproj-d