🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"R extension Error - Process failed, could not initialize R via JRI"

User: "User13"
New Altair Community Member
Updated by Jocelyn
Hi,



Been trying a few days to fix this error. Process failed, could not initialize R via JRI.



I am using macbook, and followed this strictly:



======

After you have installed a proper version of R, you need to install rJava and JavaGD available on CRAN by typing the following command on the R console:

install.packages(c("rJava","JavaGD"))

Then you should activate rJava and JavaGD in the R package management.

>>I installed both packages, and started them using library(rJava) and library(JavaGD)

>> R is definitely working on my machine



Add following lines to your ~/.bash_profile or ~/.profile:

export R_HOME=/Library/Frameworks/R.framework/Resources

export JAVA_HOME=$(/usr/libexec/java_home)

>> I did this as well, and mine entries are

>> export R_HOME=/Library/Frameworks/R.framework/Resources

>> export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home



Now you can configure RapidMiner. Click on Select JRI library file and select the JRI dynamic-link library (e.g. /Library/Frameworks/R.framework/Resources/library/rJava/jri/libjri.jnilib).

>> Selected /Library/Frameworks/R.framework/Versions/3.0/Resources/library/rJava/jri/libjri.jnilib



After selecting the file you have to restart RapidMiner and the console you have started RapidMiner with.

>> I did the restart, but the error persists.



Thanks in advanced.

Find more posts tagged with