Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created February 3, 2014 06:06
Show Gist options
  • Save nsdevaraj/8779496 to your computer and use it in GitHub Desktop.
Save nsdevaraj/8779496 to your computer and use it in GitHub Desktop.
1. Remove JDK 1.7 from the directory and place it somewhere you can find it later (Desktop)
sudo mv /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk ~/Desktop/jdk1.7.0_06.jdk
2. Copy the Java 1.6 JDK to the old JDK 1.7 directory
sudo cp -R /System/Library/Java/JavaVirtualMachines/1.6.0.jdk /Library/Java/JavaVirtualMachines/1.6.0.jdk
3. Close the terminal and re-open it and type ‘java -version’. You should see that the Java version 1.6 is now enabled.
- See more at: http://www.247sw.ca/revert-to-java-1-6-jdk-on-mac-mountain-lion#sthash.NsmridQD.dpuf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment