[R-SIG-Mac] java version, perhaps related to ggplot2

Richard M. Heiberger rmh @ending from temple@edu
Tue May 22 07:36:52 CEST 2018


sI have Macintosh High Sierra 10.13.4
and R_3.5.0

I am attempting to R CMD build and check my package microplot against
the imminent ggplot2_2.2.1.9000

The build fails with messages

** byte-compile and prepare package for lazy loading
Error : .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.5/Resources/library/rJava/libs/rJava.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so,
6): Library not loaded:
/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib
  Referenced from:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so
  Reason: image not found
ERROR: lazy loading failed for package ‘microplot’

Indeed I do not have Java 9, I have Java 8, which the Java updater
says is current (171).
The java site
http://www.oracle.com/technetwork/java/javase/overview/index.html
seems to want to give me Java 10 (not Java 9), and the discussion on
this R-sig-mac list
    [R-SIG-Mac] R and Java 10 ➜ rJava not able to build
beginning March 29 seems to say 8 is still correct.  As suggested
there I looked at R-admin for 3.5.0
and discover "The situation with Java support on macOS is messy".
I attempted the suggested workaround
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
and got the same message as above.

I need guidance as to the next steps I should take.

Rich



More information about the R-SIG-Mac mailing list