Can't install rJava 0.9 on Ubuntu 10.04

后端 未结 4 1986
遇见更好的自我
遇见更好的自我 2021-02-19 02:12

I use R 2.13 from the CRAN apt repo for Ubuntu 10.04, and I\'m trying to install Deducer, which requires JGR/rJava, but rJava refuses to build/install, complaining about being u

4条回答
  •  广开言路
    2021-02-19 02:47

    Dah, not long after posting I found the answer here:

    http://r-interface.blogspot.com/2012/04/install-r-jgr-and-deducer-in-ubuntu.html

    Although I already had Sun Java installed, the key was to run update-java-alternatives to actually switch to Sun Java first before running javareconf:

    sudo update-java-alternatives -s java-6-sun
    sudo R CMD javareconf
    

提交回复
热议问题