我在linux上遇到这个问题时,在java端使用 rCaller 到 Rscript 的库(rJava):
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Loading required package: methods
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Error : .onLoad failed in loadNamespace() for 'rJava', details:
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error: call: dyn.load(file, DLLpath = DLLpath, ...)
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error: error: unable to load shared object '/opt/rbuilt/lib64/R/library/rJava/libs/rJava.so':
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error: libjvm.so: cannot open shared object file: No such file or directory
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Error: package or namespace load failed for ârJavaâ
[8/20/14 23:00:52:169 EDT] 000000cc SystemOut O Error:Execution halted
[8/20/14 23:00:53:811 EDT] 000000cd SystemOut O Output:[1] "here 0"
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error:Loading required package: methods
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error:Error : .onLoad failed in loadNamespace() for 'rJava', details:
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error: call: dyn.load(file, DLLpath = DLLpath, ...)
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error: error: unable to load shared object '/opt/rbuilt/lib64/R/library/rJava/libs/rJava.so':
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error: libjvm.so: cannot open shared object file: No such file or directory
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error:Error: package or namespace load failed for ârJavaâ
[8/20/14 23:00:54:276 EDT] 000000ce SystemOut O Error:Execution halted
有人能帮帮我吗?谢谢!