[R-SIG-Mac] rJava stops loading since I upgraded R to 3.4.0

Christofer Bogaso bogaso.christofer at gmail.com
Tue May 23 20:48:46 CEST 2017


Hi again,

After I upgraded R to 3.4.0, I could not load rJava package. Below is
the error :

> library(rJava)

Error: package or namespace load failed for ‘rJava’:

 .onLoad failed in loadNamespace() for 'rJava', details:

  call: dyn.load(file, DLLpath = DLLpath, ...)

  error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so':

  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so,
6): Library not loaded: @rpath/libjvm.dylib

  Referenced from:
/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so

  Reason: image not found

I have installed latest version of Java.

R version :

R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"

Copyright (C) 2017 The R Foundation for Statistical Computing

Platform: x86_64-apple-darwin15.6.0 (64-bit)

iOS : Sierra

With previous version of R, rJava was working fine. Could you please
help how to fix it.

Thanks for your time.

Regards,



More information about the R-SIG-Mac mailing list