FAQ

[R] Java 7.51 broke rJava?

Yury V Bukhman
Feb 12, 2014 at 11:09 pm
Hi,


after I updated Java to 7.51 on my Windows system, rJava can no longer load:

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?


My session info:

sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)


locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252


attached base packages:
[1] stats graphics grDevices utils datasets methods base


other attached packages:
[1] limma_3.18.11 gage_2.12.1 Rcolombos_1.4.1 RJSONIO_1.0-3
RCurl_1.95-4.1 bitops_1.0-6


loaded via a namespace (and not attached):
[1] BiocGenerics_0.8.0 Biostrings_2.30.1 digest_0.6.4 graph_1.40.1
httr_0.2 IRanges_1.20.6
[7] KEGGREST_1.2.0 parallel_3.0.2 png_0.1-7 stats4_3.0.2 stringr_0.6.2
tools_3.0.2
[13] XVector_0.2.0


Anyone knows how to fix this?


Thanks.


Yury
reply

Search Discussions

2 responses

  • Jeff Newmiller at Feb 13, 2014 at 1:10 am
    Have you investigated the suggestion in the error message yet? "Architecture" means 32bit vs 64bit...
    ---------------------------------------------------------------------------
    Jeff Newmiller The ..... ..... Go Live...
    DCN:<jdn...@...us> Basics: ##.#. ##.#. Live Go...
                                           Live: OO#.. Dead: OO#.. Playing
    Research Engineer (Solar/Batteries O.O#. #.O#. with
    /Software/Embedded Controllers) .OO#. .OO#. rocks...1k
    ---------------------------------------------------------------------------
    Sent from my phone. Please excuse my brevity.

    On February 12, 2014 3:09:33 PM PST, Yury V Bukhman wrote:
    Hi,

    after I updated Java to 7.51 on my Windows system, rJava can no longer
    load:
    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?

    My session info:
    sessionInfo()
    R version 3.0.2 (2013-09-25)
    Platform: x86_64-w64-mingw32/x64 (64-bit)

    locale:
    [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
    States.1252 LC_MONETARY=English_United States.1252
    [4] LC_NUMERIC=C LC_TIME=English_United States.1252

    attached base packages:
    [1] stats graphics grDevices utils datasets methods base

    other attached packages:
    [1] limma_3.18.11 gage_2.12.1 Rcolombos_1.4.1 RJSONIO_1.0-3
    RCurl_1.95-4.1 bitops_1.0-6

    loaded via a namespace (and not attached):
    [1] BiocGenerics_0.8.0 Biostrings_2.30.1 digest_0.6.4 graph_1.40.1
    httr_0.2 IRanges_1.20.6
    [7] KEGGREST_1.2.0 parallel_3.0.2 png_0.1-7 stats4_3.0.2 stringr_0.6.2
    tools_3.0.2
    [13] XVector_0.2.0

    Anyone knows how to fix this?

    Thanks.

    Yury

    ______________________________________________
    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.
  • Yury V Bukhman at Feb 13, 2014 at 7:46 pm
    Thanks for the suggestion, Jeff! As it turned out, the automatic Java
    update installed the 32-bit version of Java for me. Installing the
    64-bit version fixed this.


    Regards,


    Yury





    On 2/12/2014 7:10 PM, Jeff Newmiller wrote:
    Have you investigated the suggestion in the error message yet? "Architecture" means 32bit vs 64bit...
    ---------------------------------------------------------------------------
    Jeff Newmiller The ..... ..... Go Live...
    DCN:<jdn...@...us> Basics: ##.#. ##.#. Live Go...
    Live: OO#.. Dead: OO#.. Playing
    Research Engineer (Solar/Batteries O.O#. #.O#. with
    /Software/Embedded Controllers) .OO#. .OO#. rocks...1k
    ---------------------------------------------------------------------------
    Sent from my phone. Please excuse my brevity.
    On February 12, 2014 3:09:33 PM PST, Yury V Bukhman wrote:
    Hi,

    after I updated Java to 7.51 on my Windows system, rJava can no longer
    load:
    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?

    My session info:
    sessionInfo()
    R version 3.0.2 (2013-09-25)
    Platform: x86_64-w64-mingw32/x64 (64-bit)

    locale:
    [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
    States.1252 LC_MONETARY=English_United States.1252
    [4] LC_NUMERIC=C LC_TIME=English_United States.1252

    attached base packages:
    [1] stats graphics grDevices utils datasets methods base

    other attached packages:
    [1] limma_3.18.11 gage_2.12.1 Rcolombos_1.4.1 RJSONIO_1.0-3
    RCurl_1.95-4.1 bitops_1.0-6

    loaded via a namespace (and not attached):
    [1] BiocGenerics_0.8.0 Biostrings_2.30.1 digest_0.6.4 graph_1.40.1
    httr_0.2 IRanges_1.20.6
    [7] KEGGREST_1.2.0 parallel_3.0.2 png_0.1-7 stats4_3.0.2 stringr_0.6.2
    tools_3.0.2
    [13] XVector_0.2.0

    Anyone knows how to fix this?

    Thanks.

    Yury

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

Related Discussions

Discussion Navigation
viewthread | post

2 users in discussion

Yury V Bukhman: 2 posts Jeff Newmiller: 1 post