正在寻找一种在 Windows 或Mac 机器(Mac machine)上摆脱Java的方法?尽管对某些 Web 用户来说必不可少,但由于与(Though)Java相关的所有安全漏洞,大多数人不需要冒险在他们的机器上运行Java。
在本文中,我将讨论您需要采取的步骤,以便从您的 Windows 机器上完全删除所有Java痕迹。(Java)Mac的过程有点不同,因此如果您运行的是 OS X ,您可以向下滚动“在 Mac 上删除 Java”部分。(Remove Java on Mac)
请注意,较新版本的Java(Java 8v20及更高版本)具有用于自动卸载较旧(Java 8v20)Java版本的内置工具,但有时即使此工具(tool doesn)也无法摆脱所有问题。此外,它会保留安装的最新版本,您可能也不想要。
是否安装了 Java?
您可以通过转到控制面板(Control Panel)并查找Java图标来检查您是否在Windows中安装了 Java。(Windows)如果你在那里看到它,那意味着你已经安装了 Java。
使用此控制面板选项(Control Panel option),您还可以在Web 浏览器中禁用(web browser)Java ,而无需卸载它。我还将在下面解释该选项。如果您返回控制面板(Control Panel)并单击程序和功能(Programs and Features),您可以看到计算机上安装的所有不同版本的Java 。
下一个是什么?好吧,我在Windows上删除(Windows)Java时要做的第一件事就是先卸载旧版本。
删除旧版本的 Java
要摆脱旧版本,您可以下载并安装最新版本的Java,它会自动检查旧版本,然后安装最新版本,或者您可以运行Java 卸载工具(Java Uninstall Tool)。
该小程序将检查您的Java版本,然后删除过时的版本。如果有旧版本,您将收到一条消息,显示版本并让您能够卸载它们。
单击卸载选定版本(Uninstall Selected Versions)按钮以删除旧版本。如您所见,我不需要Java 8 Update 60,因为我安装了最新的Java 8 Update 65。现在您只有最新版本,我们可以做以下两件事之一:禁用Java或卸载它。
禁用 Java
如果您需要偶尔在某些网站上使用Java,但不需要一直启用它,您可以禁用它而不是卸载它。为此,请打开控制面板(Control Panel),单击Java,然后单击安全(Security)选项卡。
取消选中在浏览器中启用 Java 内容(Enable Java content in the browser)框以禁用Internet Explorer中的(Internet Explorer)Java。值得注意的是,Chrome从(Chrome)42 版(version 42)开始甚至不再支持Java,因此您不必担心该浏览器中的问题。
对于 Firefox,您必须单击Tools,然后单击Add-ons并选择Plugins。单击Java 平台(Java Platform),然后单击禁用(Disable)。请注意,即使Java被禁用,它也可能会过时,并且在安装后仍然会给您的计算机带来安全漏洞。(security vulnerability)
在 Windows 中卸载 Java
要卸载Java,首先删除旧版本,如上所示,然后转到控制面板和程序(Control Panel and Programs)和功能(Features)。单击(Click)此处列出的最新Java 版本(Java version),然后单击卸载(Uninstall)。
从技术上讲,这就是你应该做的所有事情,但如果你真的想摆脱Java的每一个痕迹,我建议使用一个名为JavaRa的(JavaRa)免费软件应用程序(freeware app)。下载后,只需运行该应用程序。您会看到几个图标,但我们要使用的是Remove Java Runtime。
在第一个屏幕上,它会显示未找到卸载程序,这很好,因为我们卸载了所有版本的Java。只需单击(Just click)下一步按钮(Next)。
该程序最重要的部分是第 2 步(Step 2)。在这里,您要单击“执行删除例程(Perform Removal Routine)”按钮,这将删除所有剩余的文件、文件夹和 Java 注册表(Java registry)项。
即使在使用自己的工具卸载Java之后, (Java)JavaRa也能够删除另外 12 个遗留的项目。
单击下一步(Click Next),您将看到一个下载最新版本的按钮。除非您想重新安装Java,否则只需单击Next,然后在下一个屏幕上单击Finish 。现在Java已完全从您的Windows 系统(Windows system)中删除。
在 Mac 上删除 Java
在Mac 上(Macs),除了卸载过程之外,一切都几乎相同。您可以查看Java是否以与(Java)Windows几乎相同的方式安装在您的Mac上。只需(Just)打开系统偏好设置(System Preferences)并检查底部是否有Java图标。(Java)
如果有Java 图标(Java icon),则表示您已在OS X上安装了Java。此外,就像在Windows中一样,您可以选择保持安装Java ,但如果您愿意,可以在Safari中禁用它。第一种方法是单击System Preferences中的Java 图标(Java icon),这将打开Java 控制面板( Java Control Panel),它看起来与Windows中的完全一样。单击(Click)安全(Security)选项卡,然后取消选中在浏览器中启用 Java 内容(Enable Java content in browser)框。
另一种方法是直接在Safari中禁用(Safari)Java。为此,请打开Safari,然后转到Preferences。
单击安全(Security)选项卡,然后单击Internet 插件( Internet plug-ins)旁边最底部的插件设置(Plug-in Settings)按钮。
您应该会在列表中看到Java,取消选中该框将禁用Safari中的Java。如果您想在OS X上卸载(OS X)Java,这有点技术性。首先(First),通过单击Spotlight并输入终端(Terminal)或转到应用程序(Applications)-实用程序(Utilities)然后终端打开终端。(Terminal)
现在一次复制并粘贴(copy and paste) 以下命令,并在粘贴每个命令后按 Enter 。(time and press Enter)
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
当您按下回车键时,您将被要求输入您的管理员密码(administrator password)。如果一切顺利,您将看不到任何输出。
如果您去检查System Preferences,Java 图标(Java icon)应该消失了。此外,如果您转到Safari中的插件部分,它也会从已安装插件列表中消失。这就是在Mac上删除(Macs)Java的内容。如果您有任何问题,请随时发表评论。享受!
How to Remove or Uninstall Java (JRE) on Windows and Mac
Looking for a way to get rid of Java on your Windows or Mac machine? Though essential to some web users, moѕt people do not need to risk running Java on their machines because of all the security vulnerabilіties associated with Java.
In this article, I’m going to talk about the steps you need to take in order to completely remove all traces of Java from your Windows machine. The process for Mac is a bit different, so you can scroll down the Remove Java on Mac section if you are running OS X.
Note that the newer versions of Java (Java 8v20 and higher) have a built-in tool for uninstalling older Java versions automatically, but sometimes even this tool doesn’t get rid of everything. Also, it keeps the latest version installed, which you might not want either.
Is Java Installed?
You can check whether you have Java installed or not in Windows by going to the Control Panel and looking for the Java icon. If you see it there, that means you have Java installed.
Using this Control Panel option, you can also disable Java in your web browser without uninstalling it. I’ll explain that option below also. If you go back to the Control Panel and click on Programs and Features, you can see all the different versions of Java installed on your computer.
So what’s next? Well, the first thing I do when removing Java on Windows is to uninstall the older versions first.
Remove Older Versions of Java
To get rid of the older versions, you can download and install the latest version of Java, which will automatically check for older versions and then install the latest version or you can run the Java Uninstall Tool.
The applet will check your version of Java and then remove out-of-date versions. If there are older versions, you will get a message showing you the versions and giving you the ability to uninstall them.
Click on the Uninstall Selected Versions button to remove the older versions. As you can see, I don’t need Java 8 Update 60 because I have the latest Java 8 Update 65 installed. Now that you only have the latest version, we can do one of two things: either disable Java or uninstall it.
Disable Java
If you need to occasionally use Java for certain websites, but don’t need it enabled all the time, you can disable it instead of uninstalling. To do this, open the Control Panel, click on Java and then click on the Security tab.
Uncheck the Enable Java content in the browser box to disable Java in Internet Explorer. It’s worth noting that Chrome doesn’t even support Java anymore since version 42, so you don’t have to worry about it in that browser.
For Firefox, you have to click on Tools, then Add-ons and select Plugins. Click on Java Platform and then click on Disable. Note that even though Java is disabled, it can become outdated and still present a security vulnerability to your computer since it is installed.
Uninstall Java in Windows
To uninstall Java, first remove the older versions like shown above and then go to Control Panel and Programs and Features. Click on the latest Java version listed there and click on Uninstall.
Technically, this is all you should have to do, but if you really want to get rid of every trace of Java, I recommend using a freeware app called JavaRa. Once you download it, just run the application. You’ll see a couple of icons, but the one we want to use is Remove Java Runtime.
On the first screen, it’ll show you that the uninstaller was not found, which is fine since we uninstalled all versions of Java. Just click on the Next button.
The most important part of this program is Step 2. Here you want to click the Perform Removal Routine button, which will remove any leftover files, folders and Java registry entries.
Even after uninstalling Java using its own tools, JavaRa was able to remove 12 more items that were left behind.
Click Next and you’ll see a button to download the latest version. Unless you want to reinstall Java, just click Next and then click Finish on the next screen. Now Java is completely removed from your Windows system.
Remove Java on Mac
On Macs, everything is pretty much the same, except for the uninstall process. You can see whether Java is installed on your Mac in pretty much the same way as Windows. Just open up System Preferences and check to see if there is a Java icon at the bottom.
If the Java icon is there, that means you have Java installed on OS X. Also, just as in Windows, you can choose to keep Java installed, but disable it in Safari if you like. The first way is to click on the Java icon in System Preferences, which will open the Java Control Panel, which looks exactly like the one in Windows. Click on the Security tab and then uncheck the Enable Java content in browser box.
The other way is to disable Java in Safari directly. To do that, open Safari and then go to Preferences.
Click on the Security tab and then click on the Plug-in Settings button at the very bottom next to Internet plug-ins.
You should see Java in the list and unchecking the box will disable Java in Safari. If you want to uninstall Java on OS X, it’s a bit technical. First, open up the Terminal by clicking on Spotlight and typing in Terminal or by going to Applications – Utilities and then Terminal.
Now copy and paste in the following commands one at a time and press Enter after pasting each command.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
When you press enter, you will be asked to enter your administrator password. If everything went well, you won’t see any output.
If you go and check in System Preferences, the Java icon should be gone. Also, if you go to the plugins section in Safari, it will also be gone from the list of installed plugins. That’s about it for removing Java on Macs. If you have any questions, feel free to post a comment. Enjoy!