java – Problem with R studio on Mac with Monterey and arm system

Loading required namespace: rJava Failed with error: ‘.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,
0x000A): tried: ‘/Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib’
(mach-o file, but is an incompatible architecture (have ‘x86_64’, need
‘arm64e’)), ‘/usr/lib/libjli.dylib’ (no such file)’ Cannot load rJava
Error in .local(x, p, …) : maxent() is not TRUE

Read more here: Source link