> library(rJava)
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(jli, FALSE)
error: unable to load shared object '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib':
dlopen(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib, 10): no suitable image found. Did find:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib: mach-o, but wrong architecture
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib: mach-o, but wrong architecture
请注意:我从www.example.com安装了Javahttps://www.oracle.com/java/technologies/downloads/#java8-mac,当被问到时,我允许它使用Rosetta方式。
有没有人能做到这一点?你能帮帮忙吗?我需要在Mac上使用M1芯片的rJava。
2条答案
按热度按时间8e2ybdfx1#
M1上的rJava只适用于JDK 17 aarch64版本。因为它有本机支持。
n53p2ov02#
错误:无法加载共享对象'/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli. dylib':
非常愚蠢,但是找到'/Library/Internet Plug-Ins'文件夹并删除文件夹名称中的空格为我修复了它。因此将文件夹名称从'/Library/Internet Plug-Ins'更改为'/Library/InternetPlug-Ins'。希望这对您有帮助!