R / RStudio,Yosemite和Java [英] R/RStudio, Yosemite, and Java
问题描述
我昨天升级到OSX Yosemite。当我在 RStudio
中运行 library(xlsx)
时,程序崩溃并收到消息:打开'RStudio 你需要安装旧的Java SE 6运行时。当我在中运行
。 library(xlsx)
时,我得到相同的结果和关于打开 R
的消息R
I upgraded to OSX Yosemite yesterday. When I run library(xlsx)
in RStudio
, the program crashes and I get the message: "To open 'RStudio' you need to install the legacy Java SE 6 runtime." I get the same result and message about opening R
when I run library(xlsx)
in R
.
以下是我的详细信息:
Mac Yosemite, Version 10.10.2
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
我有Java版本8更新31.我运行 java -version
并且收到此消息:没有Java运行时,请求安装。所以我安装了 Java SE Development Kit 8u31 。现在:
I have Java Version 8 update 31. I ran java -version
and got this message: "No Java runtime present, requesting install." So I installed Java SE Development Kit 8u31. Now:
java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
这没有办法,因为运行库(xlsx)
仍然会崩溃程序并抛出警告。我是否需要以某种方式回滚到Java SE 6运行时,或者有没有办法使用我安装的最新版本?
This did not do the trick because running library(xlsx)
still crashes the program and throws a warning. Do I need to somehow roll back to Java SE 6 runtime, or is there a way to use the latest version I have installed?
这个SO帖子似乎是相关的,但我不清楚安装Java的安装解决方案6.答案链接到似乎过时的苹果支持页面。
This SO post seems to be related, but I am not clear about the propsoed solution to install Java 6. The answer links to an apple support page that seems out of date.
我不熟悉Java,所以我可以使用一些建议。
I'm not familiar with Java, so I could use some advice.
推荐答案
而不是你安装的java下载这个
instead the java you have installed download this one
https://support.apple.com/kb/DL1572?viewlocale=zh_CN&locale=en_US
安装后,您的问题将会解决待解决
after installing it, your problem will be solved
这篇关于R / RStudio,Yosemite和Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!