简体   繁体   中英

Macbook Pro M1 issues connecting to oracle database with R

I am using an M1 MBP running Monterey and trying to connect to an oracle database to pull data into R. Currently I am trying to setup RJDBC but am open to other options if there is something easier to use.

When I try to load RJDBC I am getting:

Loading required package: 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, 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)
Error: package ‘rJava’ could not be loaded

I have seen a few similar posts:

And am wondering what the best course of action here is. Would it be better to try and instal the arm version of java or the arm version of R?

JavaAppletPlugin no longer exists.

Java Applet technology has been retired, phased out across all platforms including macOS.

See Oracle white paper, Java Client Roadmap Update .

Contact the app publisher for an updated modern release. The release you have must be from many years ago.

Resolved by downloading ARM version of java:

https://www.oracle.com/java/technologies/downloads/#jdk17-mac

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM