Error loading rJava in R (Ubuntu 12.04)

I had some problems installing rJava. Then I found this solution.

Unfortunately, I get the following error while downloading a package:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/informatik2/students/home/1jendryc/R/x86_64-pc-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘rJava’

This file exists and even the correct path.

~/R/x86_64-pc-linux-gnu-library/3.1/rJava/libs$ ls 
rJava.so

So, I tried that approach, but it did not work.

I have no way to get root, because I work at my university on a computer with a pool.

Greetings.

+4
source share
1 answer

Your problem is something else. Which message says that he cannot find "libjvm.so". You need to configure Java, rJava and R correctly. Look here

http://www.owsiak.org/?p=3671

, R Java.

0

Source: https://habr.com/ru/post/1544134/


All Articles