Error of java path on loading rJava package
I have a VM of Ubuntu 14.04 LTS on VirtualBox, and the real path of installation of my java-jdk is the following :
/usr/lib/jvm/java-7-openjdk-amd64
This command worked very fine for my situation. I had this type of error from installation o rJava package on RStudio:
*./configure: line 3736: /usr/lib/jvm/default-java/jre/bin/java: No such file or directory*
First I' have modified the profile in this way : sudo gedit /etc/profile and then added this instructions at the eof:
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64PATH=$PATH:$HOME/bin:$JAVA_HOME/binexport JAVA_HOMEexport PATH
After this, from terminal session I've typed the command:
sudo R CMD javareconf
and the package rJava was successfully installed.
Note: You might also have to set the LD_LIBRARY_PATH
environment variable, before running sudo R CMD javareconf
.
Faced same problem in Ubuntu 14.04. This installation guide was helpful for me after going through a straightforward installation. http://www.korecky.org/?p=1254 (Installation of R) and [http://www.korecky.org/?p=847] (Installation of Java)