How can I make rJava use the newer version of java on osx?

前端 未结 4 2165
粉色の甜心
粉色の甜心 2020-12-01 18:16

I am following this tutorial on rJava: http://cran.r-project.org/web/packages/helloJavaWorld/vignettes/helloJavaWorld.pdf

I have made all the files as specified in t

4条回答
  •  既然无缘
    2020-12-01 19:03

    I solved the problem by installing from the latest source package on RForge: http://www.rforge.net/rJava/files/

    cd /tmp
    wget http://www.rforge.net/rJava/snapshot/rJava_0.9-7.tar.gz
    R CMD INSTALL rJava_0.9-7.tar.gz
    

    In R:

    > library(helloJavaWorld)
    Loading required package: rJava
    > helloJavaWorld()
    [1] "Hello from java!"
    

提交回复
热议问题