[R-sig-Geo] xlsx or rJava issue

Dr Didier G. Leibovici didier.leibovici at nottingham.ac.uk
Fri Mar 17 11:10:20 CET 2017


A bit of dig up on google and I found 
(http://stackoverflow.com/questions/35179151/cannot-load-r-xlsx-package-on-mac-os-10-11) 
which resolves the thing in a terminal but when using Rgui same thing (?)

I tried re-installing in Rgui and now it is library(rJava) which cannot 
load (?)

library(xlsx)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
   call: dyn.load(file, DLLpath = DLLpath, ...)
   error: unable to load shared object 
'/Users/lgzdl/Library/R/3.3/library/rJava/libs/rJava.so':
   dlopen(/Users/lgzdl/Library/R/3.3/library/rJava/libs/rJava.so, 6): 
Library not loaded: @rpath/libjvm.dylib
   Referenced from: /Users/lgzdl/Library/R/3.3/library/rJava/libs/rJava.so
   Reason: image not found
Error: package ‘rJava’ could not be loaded

but at least I can work with R in a terminal!

cheers to SanjayIV,

Didier



On 17/03/2017 09:46, Dr Didier G. Leibovici wrote:
> Hi,
>
> I had some issues with java settings when using xlsx.
>
> I had re-installed rJava as well.
>
>   > library(xlsx)
> Error : .onLoad failed in loadNamespace() for 'xlsx', details:
>     call: .jinit()
>     error: JNI_GetCreatedJavaVMs returned -1
>
> Error: package or namespace load failed for ‘xlsx’
> 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.
>
> that file on my machine is in:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/server/
>
> is it a particular JAVA_HOME setting or a PATH issue?
>
> I added this in the PATH, re-installed rJava, re-installed xlsx ... nope!
> thanks,
>
> Didier
>
> on R version 3.3.2 (2016-10-31)
>

-- 
Dr Didier G. Leibovici
    d-d'ye    ley-bow-v-c
Senior Research Fellow
Geocomputational Modelling & Geospatial Statistics
Nottingham Geospatial Institute
University of Nottingham, UK
+44 (0)115 84 13924
http://www.nottingham.ac.uk/ngi/people/didier.leibovici
Google+ didier.leibovici at gmail.com
Skype didierleibovici





This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list