When I upgrade to Mavericks, it uninstalls Java 1.6. I can install Java 7, but for some applications and development work, I still need access to Java 6. How can I reinstall Java 6 in Mavericks?
Apple docs generally recommend downloading Java directly from Oracle, but I don't see a Mac version listed on the Oracle download page for Java SE 6.
I was able to install parts of Java 6, with an Apple Support update. But Maven is still missing.
$ 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)
I was able to install Maven with Homebrew:
$ 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"