How to uninstall (remove) JAVA from OS X Lion
2013-07-22 01:42
441 查看
Open terminal (Applications -> Utilities -> Terminal)
To remove JVM enter folowing:
Then, clean up the installer records by removing them from
Now clear any traces of the Java installation from Software Update.
sudo cp
Change permissions on it
chown yourusername:staff ~/Desktop/
Open it in TextEdit and find following: com.apple.pkg.JavaEssentials, remove all dict section which containing this line (it may be several of them)
Example of one of the records:
<dict>
<key>date</key>
2012-04-13T22:13:59Z
<key>displayName</key>
<string>Java for OS X 2012-003</string>
<key>displayVersion</key>
<string></string>
<key>packageIdentifiers</key>
<array>
<string>com.apple.pkg.JavaEssentials</string>
<string>com.apple.pkg.JavaForMacOSX107</string>
<string>com.apple.pkg.JavaSecurity</string>
</array>
<key>processName</key>
<string>Installer</string>
</dict>
When you are finished with cleaning, save this file, exit from texedit. Then change permissions to original by entering
To remove JVM enter folowing:
sudo rm -rf /System/Library/Java/JavaVirtualMachines/
Then, clean up the installer records by removing them from
/private/var/db/receipts/:
com.apple.pkg.JavaForMacOSX107.bom com.apple.pkg.JavaForMacOSX107.plist
Now clear any traces of the Java installation from Software Update.
Please copy following file to your Desktop /Library/Receipts/
InstallHistory.plist by entering following string in terminal:
sudo cp
/Library/Receipts/
InstallHistory.plist~/Desktop
Change permissions on it
chown yourusername:staff ~/Desktop/
InstallHistory.plist
Open it in TextEdit and find following: com.apple.pkg.JavaEssentials, remove all dict section which containing this line (it may be several of them)
Example of one of the records:
<dict>
<key>date</key>
2012-04-13T22:13:59Z
<key>displayName</key>
<string>Java for OS X 2012-003</string>
<key>displayVersion</key>
<string></string>
<key>packageIdentifiers</key>
<array>
<string>com.apple.pkg.JavaEssentials</string>
<string>com.apple.pkg.JavaForMacOSX107</string>
<string>com.apple.pkg.JavaSecurity</string>
</array>
<key>processName</key>
<string>Installer</string>
</dict>
When you are finished with cleaning, save this file, exit from texedit. Then change permissions to original by entering
sudo chown root:wheel ~/Desktop/InstallHistory.plist
Copy it to original location
mv
~/Desktop/InstallHistory.plist
/Library/Receipts/
相关文章推荐
- How to remove a line from a file in java?
- [Guide] Mac OS X Lion: How To Boot A Linux Live System From An USB Drive & How To Update Any OCZ SSD
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- How to generate UML Diagrams from Java code in Eclipse
- how to get the default maximum heap size for Sun's JVM from Java SE 6 or 7
- How to Install apk to Android Devices from Mac OS X
- How to Properly Remove Datastore or LUN from ESXi 5.x hosts
- How to manually remove an infected file from your computer
- java使用rest api登录salesforce | How to do authentication to salesforce from java class using Rest API
- How to retreive raw post data from HttpServletRequest in java
- How to remove k__BackingField from Json data
- How to remove Oracle Database from your computer---By Roger Gong
- How to call a android/native service from a native/android (java) code
- how to remove file and commit from history(如何移除 commit 歷史紀錄)
- How to Uninstall AVG Programs from A Windows System
- How to Manually UninstallLast Exchange 2010 Server from Organization
- How to retreive raw post data from HttpServletRequest in java
- How to add or list certificates from keystore or trustStore in Java - Keytool Example Read more: ht
- How to properly uninstall VERITAS Backup Exec (tm) 9.x if problems occur using Add/Remove Programs
- How to remove constantly launching services on Mac OS X