Java调用R环境配置问题:Cannot find JRI native library!
Posted 元亨利贞
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java调用R环境配置问题:Cannot find JRI native library!相关的知识,希望对你有一定的参考价值。
Cannot find JRI native library!
java.lang.UnsatisfiedLinkError: C:Users----Rwin-library3.5
Javajrix64jri.dll: Can‘t find dependent libraries
依照官网解释
Q: | I get the following error, what‘s wrong? java.lang.UnsatisfiedLinkError: no jri in java.library.path |
A: |
Usually it means that you didn‘t setup the necessary environment
variables properly or the JRI library is not where it is expected to be.
The recommended way to start JRI programs is to use the run
script which is generated along with the library. It sets everything up
and is tested to work. If you want to write your own script or launcher,
you must observe at least the following points:
|
1、在环境变量中设置R_HOME;
2、在系统path中加入路径,指向包含R.dll的目录,如果你的系统为64位系统,可能是在x64目录中
3、工程中配置java.library.path为jri.dll所在的路径
设置完成以后记得重新启动eclipse
以上是关于Java调用R环境配置问题:Cannot find JRI native library!的主要内容,如果未能解决你的问题,请参考以下文章
遇到的cannot find module 'xxx' 问题
Electron —— Cannot find module ‘index.js’
解决Cannot find class [org.springframework.http.converter.json.MappingJacksonHttpMessageConverter](代码片
解决Cannot find class [org.springframework.http.converter.json.MappingJacksonHttpMessageConverter](代码片
Ubuntu16.04 QT5编译出现cannot find -lGL和collect2:error:ld r
Cannot find module 'webpack/lib/node/NodeTemplatePlugin' 问题原因和解决方案