当我升级到Mavericks时,它会卸载Java 1.6。我可以安装Java 7,但是对于某些应用程序和开发工作,我仍然需要访问Java 6.如何在Mavericks中重新安装Java 6?
Apple文档通常建议直接从Oracle下载Java,但我没有看到Java SE 6的Oracle下载页面上列出的Mac版本。
更新
我能够通过Apple Support更新安装部分Java 6 。但Maven仍然缺席。
$ specs java os
Specs:
specs 0.7
https://github.com/mcandre/specs#readme
mvn --version
mvn not found
echo $CLASSPATH
echo $JAVA_HOME
/Library/Java/Home
javac -version
javac 1.6.0_65
java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
system_profiler SPSoftwareDataType | grep 'System Version'
System Version: OS X 10.9 (13A603)
更新2
我能够用Homebrew安装Maven:
$ brew install maven
$ mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 11:22:22-0400)
Maven home: /usr/local/Cellar/maven/3.1.1/libexec
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac"
这可能是有用的stackoverflow.com/questions/19533528 / ...
—
Simon