Mac Uninstall Java

Source: Internet
Author: User

Because the JDK version on the computer and the version of the project group used inconsistent, so need to uninstall, but as a newcomer small white plus no Mac too much experience, or a little bit of some effort, from the Internet to check the information, finally solve the problem, so record.

Reference Blog: Http://www.tuicool.com/articles/jANjUzi

According to the introduction of the Great God blog, only know that there are DMG and pkg of the MAC installation program form, in the reinstallation of the JDK also does have the process of installing PKG, but did not notice, so, in the/application is only DMG removed, And for both forms of the JDK, but still need to continue to delete the pkg.

I started with someone else's blog, namely: Delete the Java plug-in file Javaappletplugin.plugin (direct search in the Finder), but Java-version will still print out the Java version information, Later a variety of search know to delete the corresponding pkg file, the specific process reference Daniel Blog, in this record.

Of course, can be found on the internet a lot of deleted pkg excellent article, you can learn from

1. "Pkgutil--pkgs" command, List installed pkg package, find the Java pkg, explain, Because I had only deleted the Javaappletplugin.plugin file before, I installed the 1.7 version of the JDK, so the philosophy shows the 2 jdk pkg, normally there should be only one JDK

2. Use "cd/private/var/db/receipts", "ls" command, list all the *.bom and *.plist files, BOM records all the associated files of this package.

With the above questions, there should also be only one JDK version of the BOM and plist

3. Use "Lsbom Com.oracle.jdk8u91.bom" to view all associated files

4. The files for this package are mainly in the/system/library/java/javavirtualmachines/1.8.0.jdk folder, as long as you delete this folder.

At this point, jdk1.8 completely removed

There are also two software to uninstall PKG:

http://www.corecode.at/uninstallpkg/

Https://github.com/mpapis/pkg_uninstaller

Mac Uninstall Java

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.