欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Failed to load JVM with JDK 1.8.0 in R language

程序员文章站 2022-06-10 10:26:26
...
Issue:
library(RWeka)
Error : .onLoad failed in loadNamespace() for 'RWekajars', details:
call: .jinit()
error: Cannot create Java virtual machine (-4)
In addition: Warning message:
package ‘RWeka’ was built under R version 2.14.1
Error: package/namespace load failed for ‘RWeka’
(加载RWeka出错)

Solutions:
sudo mkdir -p /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bundle/Libraries

sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/server/libjvm.dylib /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bundle/Libraries/libserver.dylib



Ref: https://oliverdowling.com.au/2014/03/28/java-se-8-on-mac-os-x/
相关标签: R RWeka JVM报错