Call a java method in R using rJava

和自甴很熟 提交于 2019-12-06 05:49:42
Gladiator

Try the below methods,

  1. Change your jclassPath, where you directly specify the complete pathname of your jar file including the jar name, say /home/user/mypath/myclass_name.jar

  2. Or, you can unzip your jar file in a folder and refer to that path in your jclassPath.

If, the above does not work,

  1. Try to write the 'runAlgorithm' method in the same class where you are calling. I have faced issues with calling external libraries/classes.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!