100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > mac os卸载java_如何在Mac OS X上卸载Java

mac os卸载java_如何在Mac OS X上卸载Java

时间:2019-09-20 10:01:44

相关推荐

mac os卸载java_如何在Mac OS X上卸载Java

mac os卸载java

Java is, and always has been, the source of many woes. And security holes. Lots of security holes. There’s really no reason to have it installed anymore, especially now that Minecraft has its own bundled Java for both OS X and Windows. So today is the day you remove it.

Java曾经是,而且一直是许多麻烦的根源。 和安全Kong。 很多安全漏洞。 确实没有理由再安装它,尤其是由于Minecraft拥有自己的OS X和Windows捆绑Java 。 所以今天是您删除它的日子。

If you uninstall it and figure out that one of your applications depends on Java and won’t run anymore, it’s easy enough to reinstall it again. Or stop using that application and find a better alternative. But either way, uninstalling Java isn’t going to break your computer permanently.

如果您卸载它并发现您的应用程序之一依赖于Java并且不再运行,那么重新安装它很容易。 或者停止使用该应用程序,找到更好的选择。 但是,无论哪种方式,卸载Java都不会永久破坏您的计算机。

删除Java运行时 (Removing the Java Runtime)

This is easy enough. Open up a Terminal window and paste in the following two lines. You’ll be prompted for your password.

这很容易。 打开“终端”窗口,然后粘贴以下两行。 系统将提示您输入密码。

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane

Done! Now you can close and reopen the System Preferences window to see that the icon is gone.

做完了! 现在,您可以关闭并重新打开“系统偏好设置”窗口,以查看图标已消失。

删除Java JDK(可能未安装) (Removing the Java JDK (Which May Not Be Installed))

The java development kit is different than the runtime, and to remove that, you’ll need to run a different command and look in a different folder to see if it even is installed (usually it’s not). Open up a Terminal window and type in (or paste) the following command to switch to the correct folder:

Java开发套件与运行时有所不同,要删除该套件,您需要运行不同的命令并在不同的文件夹中查看它是否已安装(通常不是)。 打开“终端”窗口,然后键入(或粘贴)以下命令以切换到正确的文件夹:

cd /Library/Java/JavaVirtualMachines

And then use “ls” at the prompt to see if there is anything in there. In my case, there was. So then you’ll type in the following:

然后在提示符下使用“ ls”查看其中是否有任何内容。 以我为例。 因此,您将输入以下内容:

sudo rm -rf jdk1

sudo rm -rf jdk1

And then use the TAB key to make the shell complete the file name. It should look something like the following screenshot, but the number might be different in your case:

然后使用TAB键使外壳程序完成文件名。 它的外观应类似于以下屏幕截图,但具体情况可能会有所不同:

That should be all you need to do.

那应该就是您要做的。

确保Java消失了 (Making Sure Java is Gone)

It’s easy enough to make sure that Java is completely dead. You should already have noticed that closing and reopening System Preferences is enough to make the icon there go away, but to be really sure, you can open up a terminal and simply type “java”. You’ll be presented with the message, “No Java runtime present, requesting install”.

确保Java完全失效很容易。 您应该已经注意到,关闭并重新打开“系统偏好设置”足以使那里的图标消失,但是请确保可以打开终端并只需键入“ java”。 您将看到消息“不存在Java运行时,正在请求安装”。

And then a little dialog box will pop up with the OK button highlighted, indicating that everything is going to be OK now.

然后会弹出一个小对话框,突出显示“确定”按钮,表示现在一切正常。

We’ve also covered how to uninstall Java from your Windows computer if you want to do that.

我们还介绍了如何从Windows计算机上卸载Java 。

翻译自: /230145/how-to-uninstall-java-on-mac-os-x/

mac os卸载java

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。