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:
Ref: https://oliverdowling.com.au/2014/03/28/java-se-8-on-mac-os-x/
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/
上一篇: STM32F4-SPI接口开发
下一篇: 男人每天戳这处竟越老越强壮