Skip to content

Instantly share code, notes, and snippets.

@paulozullu
Last active October 18, 2017 14:46
Show Gist options
  • Save paulozullu/bb23413756cf9d3ee8261d39c225050c to your computer and use it in GitHub Desktop.
Save paulozullu/bb23413756cf9d3ee8261d39c225050c to your computer and use it in GitHub Desktop.
Problem with permission to rJava.so and/or instalation of rJava, openNLP, etc. in Ubuntu 16.04

Stackoverflow link

For Ubuntu, oracle-java (7/8) installed. It'll be at this location /usr/lib/jvm and sudo access is required.

Create the file /etc/ld.so.conf.d/java.conf with the following entries:

/usr/lib/jvm/java-8-oracle/jre/lib/amd64
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server

(Replace java-8-oracle with java-7-oracle or java-7-openjdk-amd64 depending on your java version)

Then:

sudo ldconfig

Restart RStudio and then install the rJava package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment