Skip to content

rJava installation under linux: configuration failed

4 messages · zhihua li, Stefan Grosse, Brian Ripley

#
Hi netter,

Recently I was trying to install rJava.  The operating system is suse 10.0, 
and the R versionis 2.5.0.

Following the instructions of R Wiki for rJava, I did configuration first: 
R CMD javareconf

and then it showed a series of information, from what it seems that java is 
in the system and the configuration succeeded.

Then I tried to install rJava:
install.packages("rJava")

following which rJava was downloaded and being installed, but during the 
last test step it said: can't complie a simple JNL program. Configuration 
Failed!

Did I do something wrong? Or there's something I should do that I didn't?

Thanks a lot!


                 Sincerely Yours:  Zhihua Li
#
Which java have you installed? ( java -version )

You need a Sun Java and better is a 1.5 series Java, JGR seems to have
some problem with the new 1.6 series. And you need the JDK, not the JRE.

You can google how to do those installations on suse linux.

Stefan

-------- Original Message --------
Subject: [R] rJava installation under linux: configuration failed
From: zhihua li <lzhtom at hotmail.com>
To: r-help at stat.math.ethz.ch
Date: 05.06.2007 19:55
#
On Wed, 6 Jun 2007, Stefan Grosse wrote:

            
Precautionary note: the '1.5 series Java' (aka Java 5) does not work with 
JNI (and hence rJava) on some platforms, including AMD64 Linux.
It can be tricky, especially if you need a later Java than your OS version 
supports.

  
    
#
Since the Suse Version is 10.0 there is an installation repository
provided by Suse:

http://download.opensuse.org/distribution/SL-10.0-OSS/inst-source-java/

you can add that via Yast and this should then provide Java 5 JDK.
(provided that you are on the correct platform ...)