When installing rJava using the install.packages(\"rJava\") command I get the following error:
install.packages(\"rJava\")
checking Java support in R... present: interprete
I tried to install openjdk-7-* but still I had problems installing rJava. Turns out after I restarted my computer, then there was no problem at all.
so
sudo apt-get install openjdk-7-* RESTART after installing java, then try to install package "rJava" in R