最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

[记录]mac下卸载java 6

Java crifan 8浏览 0评论
[背景]
折腾:
[记录]mac中安装java
期间,需要先卸载mac中的java 6。
[折腾过程]
1.去Finder中的应用程序中,没找到java
2.搜:
mac 卸载 java
参考:
->
-》
找了半天,好像都没有说明:
对于apple自己的java 6,如何去卸载的。。
3.搜:
mac 卸载 java6
参考:
去看看:
licrifandeMacBook-Pro:~ crifan$ ls /System/Library/Java/
Extensions/ Support/
licrifandeMacBook-Pro:~ crifan$ ls /System/Library/Java/Extensions/
AppleScriptEngine.jar        j3dutils.jar                 libJ3DAudio.jnilib
MRJToolkit.jar               jai_codec.jar                libJ3DUtils.jnilib
dns_sd.jar                   jai_core.jar                 libmlib_jai.jnilib
j3daudio.jar                 libAppleScriptEngine.jnilib  mlibwrapper_jai.jar
j3dcore.jar                  libJ3D.jnilib                vecmath.jar
licrifandeMacBook-Pro:~ crifan$ ls /System/Library/Java/Support/
CoreDeploy.bundle/ Deploy.bundle/
licrifandeMacBook-Pro:~ crifan$ ls /System/Library/Java/Support/
没找到那个:
/System/Library/Java/JavaVirtualMachines
结果即使去删除:
sudo rm -rf /System/Library/Frameworks/JavaVM.framework/
结果也没有权限:
rm JavaVM.framework opeation not permitted
licrifandeMacBook-Pro:~ crifan$ pkgutil --pkgs=.*Java.*
com.apple.pkg.JavaEssentials
com.apple.pkg.JavaForMacOSX107
com.apple.pkg.JavaMDNS
com.apple.pkg.JavaSecurity
licrifandeMacBook-Pro:~ crifan$
结果也都无法删除:
licrifandeMacBook-Pro:~ crifan$ sudo pkgutil --forget com.apple.pkg.JavaEssentials
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“com.apple.pkg.JavaEssentials.bom” couldn’t be removed." UserInfo={NSFilePath=/var/db/receipts/com.apple.pkg.JavaEssentials.bom, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7ffb60d19170 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}.
Forgot package 'com.apple.pkg.JavaEssentials' on '/'.
licrifandeMacBook-Pro:~ crifan$ sudo pkgutil --forget com.apple.pkg.JavaForMacOSX107
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“com.apple.pkg.JavaForMacOSX107.bom” couldn’t be removed." UserInfo={NSFilePath=/var/db/receipts/com.apple.pkg.JavaForMacOSX107.bom, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fc809406df0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}.
Forgot package 'com.apple.pkg.JavaForMacOSX107' on '/'.

licrifandeMacBook-Pro:~ crifan$

算了,不去删除了。

转载请注明:在路上 » [记录]mac下卸载java 6

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
55 queries in 0.560 seconds, using 12.38MB memory