R: rJava package install failing

后端 未结 17 1186
Happy的楠姐
Happy的楠姐 2020-11-22 16:28

When installing rJava using the install.packages(\"rJava\") command I get the following error:

checking Java support in R... present:
interprete         


        
17条回答
  •  轮回少年
    2020-11-22 16:50

    The rJava package looks for the /usr/lib/jvm/default-java/ folder. But it's not available as default. This folder have a symlink for the default java configured for the system.

    To activate the default java install the following packages:

    sudo apt-get install default-jre default-jre-headless

    Tested on ubuntu 17.04 with CRAN R 3.4.1

提交回复
热议问题