[R] rJava installation under linux: configuration failed

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 6 10:10:50 CEST 2007


On Wed, 6 Jun 2007, Stefan Grosse wrote:

> 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.

Precautionary note: the '1.5 series Java' (aka Java 5) does not work with 
JNI (and hence rJava) on some platforms, including AMD64 Linux.

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

It can be tricky, especially if you need a later Java than your OS version 
supports.

>
> 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
>> 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
>>
>> ------------------------------------------------------------------------
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.472 / Virus Database: 269.8.9/834 - Release Date: 05.06.2007 14:38
>>
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list