简体   繁体   中英

Error : .onLoad failed in loadNamespace() for 'rJava', details while installing a package

I was trying to install a package in R using the following command line,

/R-3.2.1/bin/R CMD INSTALL /CNVPanelizer_0.99.10.tar.gz

But it throws me rJava error as follows,

Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)

and so I tried the solution from [stackover][1] ..

But it didnt help me and still the issue perexists

Any solutions is greatly appreciated..my java version is

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Finally this issue is solved by a little bit of change in java version from java 8 to java 7

which java
jdk1.7.0_79/bin/java

and then I created a file /etc/ld.so.conf.d/java.conf with following entries in it (as super user),

/home/user/jdk1.7.0_79/jre/lib/amd64/
/home/user/jdk1.7.0_79/jre/lib/amd64/server

and then run,

sudo ldconfig

and restarted R again and it solved the issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM