Skip to content
Prev 172056 / 398503 Next

Using JRI and Java 1.6 on MAC OS X

There is no fundamental problem with rJava/JRI and Java 1.6: Java 1.6 
is all that will work on 64-bit Linux and AMD Solaris platforms, so 
some of us have only used Java 1.6 for years.

This is really an issue for the R-sig-mac list and/or the rJava 
maintainer (but he is travelling at present).  But did you install 
rJava from the sources (you may need to)?

Perhaps it is worth reiterating that most of the R Mac experts, 
(including the maintainers) do _not_ read R-help regularly (if at 
all).  If you want Mac-specific help, you are strongly advised to use 
R-sig-mac.
On Fri, 27 Feb 2009, dobomode wrote:

            
Hmm, I think you missed the word 'native', and I believe the message 
really means 'cannot find and load the JRI native library'. See what 
libjri.jnilib is linking to.

I'm not familiar enough with this on Macs, but on a normal Unix-alike 
(no frameworks etc) you usually need to reinstall R or use R CMD 
javareconf when you change the Java installation (as we know only too 
well having been struggling to get Sun Java 1.6.0_u12 to work on 
Fedora 10).
So, please read the sources and check for yourself.  That is all 
anyone except the maintainer can do (he might remember, but he might 
want to read the sources too).