markdown 在Mac上安装卸载jdk 1.6 1.7 1.8

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在Mac上安装卸载jdk 1.6 1.7 1.8相关的知识,希望对你有一定的参考价值。


![](https://alextencentcos-1256436283.file.myqcloud.com/2018-04-10-002132.png)

![](https://alextencentcos-1256436283.file.myqcloud.com/2018-04-10-002431.png)
## 下载

jdk 1.6 https://support.apple.com/kb/dl1572?locale=en_US

jdk 1.7 http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

jdk 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

jdk 1.9 http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
### **How do I uninstall Java on my Mac?**

------

This article applies to:

- **Platform(s): **Mac OS X
- **Java version(s): **7.0, 8.0

------

Uninstall Oracle Java using the Terminal**Note:** To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the `sudo` tool.Remove one directory and one file (a symlink), as follows:Click on the **Finder** icon located in your dockClick on the **Utilities** folderDouble-click on the **Terminal** iconIn the Terminal window **Copy and Paste** the commands below:
`sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin` 
`sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane` 
`sudo rm -fr ~/Library/Application\ Support/Java`Do not attempt to uninstall Java by removing the Java tools from `/usr/bin`. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS. 

------

[Can I restore Apple Java 6 after uninstalling Oracle Java?]()Yes, see the instructions on the Apple website [Restore Apple Java 6](http://support.apple.com/kb/HT5559?viewlocale=en_US). If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first. See the instructions to [Uninstall JDK](http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html).

------

MORE TECHNICAL INFORMATION

Uninstall JDKTo uninstall JDK 7 and later versions, you must have Administrator privileges and execute the remove command either as root or by using `sudo`. See the instructions to [Uninstall JDK](http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html).

以上是关于markdown 在Mac上安装卸载jdk 1.6 1.7 1.8的主要内容,如果未能解决你的问题,请参考以下文章

Mac 上安装和卸载Java JDK

mac 删除jdk

求jdk 1.6 for linux x86 rpm.bin啊....

mac上卸载oracle jdk 1.8.0_31

JDK安装

mac 卸载java