title: Error: package ‘XLConnectJars’ could not be loaded in mac os
body: <p>I got a problem when I called 'XLConnect' library in R.</p>
  
  <blockquote>
    <p>Loading required package: XLConnectJars JavaVM: requested Java version
    ((null)) not available. Using Java at "" instead. JavaVM: Failed to
    load JVM: /bundle/Libraries/libserver.dylib JavaVM FATAL: Failed to
    load the jvm library. Error : .onLoad failed in loadNamespace() for
    'XLConnectJars', details:   call: .jinit()   error:
    JNI_GetCreatedJavaVMs returned -1</p>
    
    <p>Error: package ‘XLConnectJars’ could not be loaded</p>
  </blockquote>
  
  <p>This error happened after I installed XLConnect and wrote library(XLconnect).</p>
  
  <p>I googled this problem but there are no proper solution in my case.
  I have already installed Java 8 and checked java location in terminal.
  I run R in mac OS X (10.10.5)</p>
  
  <p>Thank you for your help.</p>