title: libjvm.so: cannot open shared object file: No such file or directory
body: <p>Trying to install the rJava package on R, on my 14.10 ubuntu, using this code</p>
  
  <pre><code>if (!require(rJava)) install.packages('rJava')
  </code></pre>
  
  <p>got few errors related to java including jni problems, after reinstalling the jdk, and tried to run the same code again, got that error</p>
  
  <pre><code>Error : .onLoad failed in loadNamespace() for 'rJava', details:
    call: dyn.load(file, DLLpath = DLLpath, ...)
    error: unable to load shared object '/usr/local/lib/R/site-library/rJava/libs/rJava.so':
    libjvm.so: cannot open shared object file: No such file or directory
  Error: loading failed
  Execution halted
  ERROR: loading failed
  * removing ‘/usr/local/lib/R/site-library/rJava’
  Warning in install.packages :
    installation of package ‘rJava’ had non-zero exit status
  
  The downloaded source packages are in
      ‘/tmp/RtmpfFjrp0/downloaded_packages’
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called ‘rJava’
  </code></pre>
  
  <p>looked for solutions, to find just about everyone suggesting (for x64) to execute those commands</p>
  
  <pre><code>export LD_LIBRARY_PATH=/usr/lib/jvm/java-8-oracle/lib/amd64:/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server
  sudo R CMD javareconf 
  </code></pre>
  
  <p>but that didn't work, is there anything else I can do? I will provide any needed details</p>