* installing *source* package ‘rJava’ ... ** package ‘rJava’ successfully unpacked and MD5 sums checked ** using staged installation checking for gcc... clang -arch arm64 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether clang -arch arm64 accepts -g... yes checking for clang -arch arm64 option to enable C11 features... none needed checking for sys/wait.h that is POSIX.1 compatible... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes configure: checking whether clang -arch arm64 supports static inline... yes checking whether setjmp.h is POSIX.1 compatible... yes checking for clang -arch arm64 options needed to detect all undeclared functions... none needed checking whether sigsetjmp is declared... yes checking whether siglongjmp is declared... yes checking Java support in R... present: interpreter : '/usr/bin/java' archiver : '/usr/bin/jar' compiler : '/usr/bin/javac' header prep.: '/usr/bin/javah' cpp flags : '-I/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/include/darwin' java libs : '-L/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server -ljvm' checking whether Java run-time works... yes checking whether -Xrs is supported... yes checking whether -Xrs will be used... yes checking whether JVM will be loaded dynamically... yes checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details. Make sure you have Java Development Kit installed and correctly registered in R. If in doubt, re-run "R CMD javareconf" as root. ERROR: configuration failed for package ‘rJava’ * removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.4/rJava.Rcheck/rJava’