title: Error loading xlsx library in R
body: <p>Can someone please help me get around the problem I am having with xlsx</p>
  
  <p>I successfully installed the package xlsx in R. however when I load the xlsx library I keep getting the following error.  I uninstalled Java, restarted PC and re-installed the latest Java version but that didnt fix the problem.  Thanks in advance</p>
  
  <p>I am running R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
  Operating system : Windows 7 professional, SP 1
  Java version 1.8.0_25 (latest)</p>
  
  <p>"package ‘xlsx’ successfully unpacked and MD5 sums checked</p>
  
  <p>The downloaded binary packages are in
      C:\Users\Mathan\AppData\Local\Temp\Rtmp6BDr2b\downloaded_packages</p>
  
  <blockquote>
    <p>library("xlsx")
    Loading required package: rJava
    Error : .onLoad failed in loadNamespace() for 'rJava', details:
      call: fun(libname, pkgname)
      error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
    Error: package ‘rJava’ could not be loaded"</p>
  </blockquote>