Dear all,
I had some difficulties in setting up the Java + R interface on my mac. At first, it didn’t find the jri library, then I had an error that the R_HOME variable was not set. Then, the program parameters were not set properly. This is how I got the whole thing working:
1. I copied the file libjri.jnilib to the folder /Library/Java/Extensions. The file can be found under /Library/Frameworks/R.framework/Versions/2.15/Resources/library/rJava/jri
2. I exported the R_HOME such: export R_HOME=”/Library/Frameworks/R.framework/Versions/2.15/Resources”
3. Under Eclipse I set -> Run as -> Environment -> Variable R_HOME to /Library/Frameworks/R.framework/Versions/2.15/Resources
4. I set in Eclipse the -> Run as -> Arguments -> Program arguments to –no-save
Let me know if this helps you as well. Any feedback is greatly appreciated
Over and out! Stefan
