[R] differents behaviour of packages depending on rJava under32 and 64 bit versions of R 2.14.2

Olivier Eterradossi Olivier.Eterradossi at mines-ales.fr
Tue Apr 17 16:12:46 CEST 2012


Thank you Prof.,
As always, simple things need to thing carefully  :-(
I have missed that point, and also the existence of rJava forums.
ATB, Olivier

-----Message d'origine-----
De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Envoyé : mardi 17 avril 2012 15:32
À : Olivier Eterradossi
Cc : r-help at r-project.org
Objet : Re: [R] differents behaviour of packages depending on rJava under32
and 64 bit versions of R 2.14.2

On 17/04/2012 14:00, Olivier Eterradossi wrote:
> Hi listeRs,
>
>
>
> Maybe I have missed something, but I am facing a problem I don't 
> understand even after reading archives and manuals (
maybe not carefully
enough !) :

64-bit rJava needs 64-bit Java: 32-bit rJava needs 32-bit Java.  You can
install both on the same machine, and there are different registries
presented to 32- and 64-bit programs, so only the correct one will be seen
(if they are installed correctly).

In any case, rJava has its own help forums, so it you need further help, ask
there (and the maintainer does not read R-help routinely).

>
>
>
> On my PC (64-bit OS, Intel Xeon CPU , two L5506 at 2.13 GHz processors, 
> 12 Go
> RAM) under Windows 7 SP1,
>
>
>
> I run both 32-bit (i386-pc-mingw32/i386) and 64-bit 
> (x86_64-pc-mingw32/x64) version 2.14.2 (2012-02-29) of R, packages being
updated daily.
>
>
>
> Loading package "lsa" gives no problem under the 32-bit version :
>
> ------------------------------
>
>> library(lsa)
>
> Le chargement a nécessité le package : Snowball
>
> Le chargement a nécessité le package : RWeka
>
>>
>
> ------------------------------
>
> But does not work under the 64-bit version :
>
> -------------------------------
>
>> library(lsa)
>
> Le chargement a nécessité le package : Snowball
>
> Error : .onLoad a échoué dans loadNamespace() pour 'Snowball', détails :
>
>    appel : NULL
>
>    erreur : .onLoad a échoué dans loadNamespace() pour 'rJava', détails :
>
>    appel : fun(libname, pkgname)
>
>    erreur : JAVA_HOME cannot be determined from the Registry
>
> Erreur : le package ‘Snowball’ ne peut être chargé
>
>>
>
> --------------------------------
>
>
>
> Because of the JAVA_HOME and Registry problem I suppose this is not 
> strictly related to R but rather to the R<->  Java communication, but 
> I can't figure what is happening, as it is working under the 32-bit 
> configuration. Can someone here help ?
>
>
>
> Thanks by advance, all the best, Olivier
>
>
>
> --------------------------
>
> Olivier ETERRADOSSI
>
> Maître-Assistant, HDR
>
> Ecole des Mines d’Alès (CMGD, site de Pau)
>
> Pôle Matériaux Polymères Avancés (MPA)
>
> Hélioparc, 2 av. P. Angot, F-64053 PAU CEDEX 9
>
> Tel : 05 59 30 90 35 (direct) - 05 59 30  54 25 (std)
>
> Fax : 05 59 30 63 68
>
>
>
>
> 	[[alternative HTML version deleted]]
>
>
>
>
> ______________________________________________
> R-help at r-project.org 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.


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