问题描述
我在 .org / wiki / OS_X_Mountain_Lionrel =noreferrer> Mac OS X v10.8 (Mountain Lion)。当我将其升级到(小牛队)并运行 java -version
在终端中显示:
I have installed the JDK on Mac OS X v10.8 (Mountain Lion). When I upgraded it to Mac OS X v10.9 (Mavericks) and ran java -version
in the terminal, it showed:
然后我在Mac上手动安装了JDK(1.7)。似乎安装工作正常。安装完成后,我打开终端并输入 java -version
。它也显示了同样的错误:
Then I manually installed the JDK (1.7) on my Mac. It seems that the installation worked fine. When the installation was done, I opened the terminal and typed java -version
as well. It also showed the same error:
如何解决这个问题?
推荐答案
新的 Mavericks (10.9)向我展示了请求安装,但没有任何反应。
The new Mavericks (10.9) showed me the "Requesting install", but nothing happened.
解决方案是手动下载并安装适用于操作系统X的官方Java软件包,该软件包位于。
The solution was to manually download and install the official Java package for OS X, which is in .
更新:如下面的评论所述,此相同套餐有更新版本:
Update: As mentioned in the comments below, there is a newer version of this same package:
(纠正上面的死线)
Java for OS X 2014-001 (Correcting dead line above)
这篇关于在OS X 10.9上安装Java(Mavericks)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!