[R] rJava is not loading

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jun 6 16:58:16 CEST 2013


On 06/06/2013 15:52, Dimitri Liakhovitski wrote:
> Thank you very much, Brian.
> It's clearly christal clear - but one needs a christal ball to realize
> that! :-)
> So I learned: architecture = bitness

On current Windows, yes.
But not on OS X nor Linux nor Solaris nor FreeBSD ....

It indicates the type of CPU, or more precisely the instruction set the 
CPU is running.  x86_64 CPUs (as used by most current Windows boxes) can 
emulate i386 CPUs.  So the architectures for R on Windows are

i386 (32-bit)
x64 (64-bit, the Windows name for x86_64).

> Dimitri
>
>
> On Thu, Jun 6, 2013 at 2:19 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk
> <mailto:ripley at stats.ox.ac.uk>> wrote:
>
>     On 06/06/2013 00:38, Dimitri Liakhovitski wrote:
>
>         Hello!
>         I installed rJava and am trying to load it.
>
>         library(rJava)
>
>         Error : .onLoad failed in loadNamespace() for 'rJava', details:
>             call: fun(libname, pkgname)
>             error: No CurrentVersion entry in Software/JavaSoft
>         registry! Try
>         re-installing Java and make sure R and Java have matching
>         architectures.
>         Error: package or namespace load failed for ‘rJava’
>
>         Any idea why?
>         Background info:
>
>
>     But the posting guide asked for the output from sessionInfo(): we
>     want to know what R knows it is running as, not why you think.
>
>
>         Windows 7, 64-bit
>         R version 3.0.1 (for 64-bit)
>         I just installed the lastest Java: Java 7 Update 21
>
>
>     For the right architecture?
>
>     The message is crystal clear: you do not have a Java installed
>     matching your R.  Most likely your Java is 32-bit and your R 64-bit
>     or v.v.
>
>
>
>     --
>     Brian D. Ripley, ripley at stats.ox.ac.uk <mailto:ripley at stats.ox.ac.uk>
>     Professor of Applied Statistics,
>     http://www.stats.ox.ac.uk/~__ripley/
>     <http://www.stats.ox.ac.uk/~ripley/>
>     University of Oxford,             Tel: +44 1865 272861
>     <tel:%2B44%201865%20272861> (self)
>     1 South Parks Road, +44 1865 272866 <tel:%2B44%201865%20272866> (PA)
>     Oxford OX1 3TG, UK                Fax: +44 1865 272595
>     <tel:%2B44%201865%20272595>
>
>
>
>
> --
> Dimitri Liakhovitski


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