Java 如何卸载 Eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/50854359/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 23:50:46  来源:igfitidea点击:

How to uninstall Eclipse?

javaeclipseuninstalloompheclipse-installer

提问by vasanths294

I want to uninstall Eclipse version Mars 2, but it doesn't appear in the "Programs and Features" area of the Windows Control Panel. The installer has installed start menu shortcuts and other artifacts, so it's not just a matter of deleting the installation folder.

我想卸载 Eclipse 版本 Mars 2,但它没有出现在 Windows 控制面板的“程序和功能”区域中。安装程序已经安装了开始菜单快捷方式和其他工件,因此不仅仅是删除安装文件夹的问题。

采纳答案by kapex

There is no automated uninstaller.

没有自动卸载程序。

You have to remove Eclipse manually. At least Eclipse does not write anything in the system registry, so deleting some directories and files is enough.

您必须手动删除 Eclipse。至少 Eclipse 不会在系统注册表中写入任何内容,因此删除一些目录和文件就足够了。

Note: I use Unix style paths in this answer but the locations should be the same on Windows or Unix systems, so ~refers to the user home directory even on Windows.

注意:我在这个答案中使用了 Unix 风格的路径,但这些位置在 Windows 或 Unix 系统上应该是相同的,所以~即使在 Windows 上也是指用户主目录。

Why is there no uninstaller?

为什么没有卸载程序?

According to this discussion about uninstalling Eclipse, the reasoning for not providing an uninstaller is that the Eclipse installer is supposed to just automate a few tasks that in the past had to be done manually (like downloading and extracting Eclipse and adding shortcuts), so they also can be undone manually. There is no entry in "Programs and Features" because the installer does not register anything in the system registry.

根据有关卸载 Eclipse 的讨论,不提供卸载程序的原因是 Eclipse 安装程序应该只是自动化一些过去必须手动完成的任务(例如下载和解压缩 Eclipse 以及添加快捷方式),因此它们也可以手动撤消。“程序和功能”中没有条目,因为安装程序未在系统注册表中注册任何内容。

How to quickly uninstall Eclipse

如何快速卸载Eclipse

Just delete the Eclipse directory and any desktop and start menu shortcuts and be done with it, if you don't mind a few leftover files.

如果您不介意一些剩余文件,只需删除 Eclipse 目录和任何桌面和开始菜单快捷方式并完成它。

In my opinion this is generally enough and I would stop here, because multiple Eclipse installations can share some files and you don't accidentally want to delete those shared files. You also keep all your projects.

在我看来,这通常就足够了,我会停在这里,因为多个 Eclipse 安装可以共享一些文件,并且您不会意外地想要删除这些共享文件。您还保留所有项目。

How to completely uninstall Eclipse

如何完全卸载 Eclipse

If you really want to remove Eclipse without leaving any traces, you have to manually delete

如果你真的想不留痕迹地删除Eclipse,你必须手动删除

  • all desktop and start menu shortcuts
  • the installation directory (e.g. ~/eclipse/photon/)
  • the p2 bundle pool (which is often shared with other eclipse installations)
  • 所有桌面和开始菜单快捷方式
  • 安装目录(例如~/eclipse/photon/
  • p2 捆绑池(通常与其他 eclipse 安装共享)

The installer has a "Bundle Pools" menu entry which lists the locations of all bundle pools. If you have other Eclipse installations on your system you can use the "Cleanup Agent" to clean up unused bundles. If you don't have any other Eclipse installations you can delete the whole bundle pool directory instead (by default ~/p2/).

安装程序有一个“捆绑池”菜单条目,其中列出了所有捆绑池的位置。如果您的系统上安装了其他 Eclipse,您可以使用“Cleanup Agent”来清理未使用的包。如果您没有任何其他 Eclipse 安装,您可以改为删除整个包池目录(默认情况下~/p2/)。

If you want to completely remove the Eclipse installertoo, delete the installer's executable and the ~/.eclipse/directory.

如果您还想完全删除Eclipse 安装程序,请删除安装程序的可执行文件和~/.eclipse/目录。

Depending on what kind of work you did with Eclipse, there can be more directories that you may want to delete. If you used Maven, then ~/.m2/contains the Maven cache and settings (shared with Maven CLI and other IDEs). If you develop Eclipse plugins, then there might be JUnit workspaces from test runs, next to you Eclipse workspace. Likewise other build tools and development environments used in Eclipse could have created similar directories.

根据您使用 Eclipse 所做的工作类型,您可能想要删除更多目录。如果您使用 Maven,则~/.m2/包含 Maven 缓存和设置(与 Maven CLI 和其他 IDE 共享)。如果您开发 Eclipse 插件,那么在您的 Eclipse 工作区旁边可能会有来自测试运行的 JUnit 工作区。同样,Eclipse 中使用的其他构建工具和开发环境也可以创建类似的目录。

How to delete all projects

如何删除所有项目

If you want to delete your projects and workspace metadata, you have to delete your workspace(s). The default workspace location is ′~/workspace/′. You can also search for the .metadatadirectory to get all Eclipse workspaces on your machine.

如果要删除项目和工作区元数据,则必须删除工作区。默认工作区位置是 '~/workspace/'。您还可以搜索该.metadata目录以获取您机器上的所有 Eclipse 工作区

If you are working with Git projects, these are generally not saved in the workspace but in the ~/git/directory.

如果您正在使用 Git 项目,这些通常不会保存在工作区中,而是保存在~/git/目录中。

回答by Nafees Khabir

Look for an installation subdirectory, likely named eclipse. Under that subdirectory, if you see files like eclipse.ini, icon.xpm and subdirectories like plugins and dropins, remove the subdirectory parent (the one named eclipse).

查找安装子目录,可能名为 eclipse。在该子目录下,如果您看到 eclipse.ini、icon.xpm 等文件以及插件和 dropins 等子目录,请删除子目录父目录(名为 eclipse 的目录)。

That will remove your installation except for anything you've set up yourself (like workspaces, projects, etc.).

这将删除您的安装,除了您自己设置的任何内容(如工作区、项目等)。

Hope this helps.

希望这可以帮助。

回答by Dilanka M

Usually, In general, Eclipse doesn't have a traditional install or uninstall process. It's just a folder of the application and then a workspace that you would have selected/created when you first run it.

通常,Eclipse 没有传统的安装或卸载过程。它只是应用程序的一个文件夹,然后是您在第一次运行时选择/创建的工作区。

If you used the Eclipse Installer, you may also have a bundle pool folder named .p2 under your user home directory. There can also be .eclipse in your user home. Other than that, there shouldn't be anything Eclipse-related. Uninstallation is just removing those folders

如果您使用了 Eclipse 安装程序,您的用户主目录下可能还有一个名为 .p2 的包池文件夹。您的用户主页中也可以有 .eclipse。除此之外,不应该有任何与 Eclipse 相关的东西。 卸载只是删除那些文件夹

Other than that, you can use below guideline to uninstall the eclipse.

除此之外,您可以使用以下指南卸载 eclipse。

How to Uninstall Eclipse

如何卸载 Eclipse

If you are using the Windows 10 or other Windows Operating Systems and want to uninstall Eclipse windows version, then check the methods below.

如果您使用的是 Windows 10 或其他 Windows 操作系统,并且想要卸载 Eclipse Windows 版本,请查看以下方法。

Like we seen methods to uninstall Eclipse on Mac OS, we can also follow different ways to uninstall Eclipse on Windows systems.

就像我们在 Mac OS 上看到的卸载 Eclipse 的方法一样,我们也可以按照不同的方式在 Windows 系统上卸载 Eclipse。

Method-1: Use application uninstaller

方法 1:使用应用程序卸载程序

You can use the uninstaller application that sometimes downloaded and installed on your Windows PC along with the software.

您可以使用有时随软件一起下载并安装在 Windows PC 上的卸载程序应用程序。

Go to the parent folder where Eclipse is stored. Look for the application file named as ‘Uninstaller.' When you find it, double click on it and follow the instructions to remove Eclipse from Windows system.

转到存储 Eclipse 的父文件夹。查找名为“卸载程序”的应用程序文件。当你找到它时,双击它并按照说明从 Windows 系统中删除 Eclipse。

Method-2: Using Add or Remove Programs

方法 2:使用添加或删除程序

You know that any application or software you install on your system is listed under the programs section. You can take help of this inbuilt app to remove Eclipse from Windows.

您知道您在系统上安装的任何应用程序或软件都列在程序部分下。您可以借助此内置应用程序从 Windows 中删除 Eclipse。

  1. Press Windows + S key and type ‘Programs.'
  2. When you see an icon of ‘Add or Remove Programs', click on it.
  3. Now, from the list of applications, look for ‘Eclipse.'
  4. When you locate the app, click on it and select ‘Uninstall.'
  5. Click yes/uninstall when prompted.
  1. 按 Windows + S 键并输入“程序”。
  2. 当您看到“添加或删除程序”图标时,单击它。
  3. 现在,从应用程序列表中查找“Eclipse”。
  4. 找到该应用程序后,单击它并选择“卸载”。
  5. 出现提示时单击是/卸载。

Resource: How-do-I-completely-remove-uninstall-Eclipse-from-my-computer

资源:How-do-I-completely-remove-uninstall-Eclipse-from-my-computer

回答by Vinay

Right click on eclipse icon and click on open file location then delete the eclipse folder from drive(Save backup of your eclipse workspace if you want). Also delete eclipse icon. Thats it..

右键单击 eclipse 图标并单击打开文件位置,然后从驱动器中删除 eclipse 文件夹(如果需要,请保存 eclipse 工作区的备份)。同时删除eclipse图标。就是这样..

回答by Nafees Khabir

It's because Eclipse isn't installed software in the formal, Windows sense.

这是因为 Eclipse 不是正式的 Windows 意义上的安装软件。

Look for an installation subdirectory, likely named eclipse. Under that subdirectory, if you see files like eclipse.ini, icon.xpm and subdirectories like plugins and dropins, remove the subdirectory parent (the one named eclipse).

查找安装子目录,可能名为 eclipse。在该子目录下,如果您看到 eclipse.ini、icon.xpm 等文件以及插件和 dropins 等子目录,请删除子目录父目录(名为 eclipse 的目录)。

That will remove your installation except for anything you've set up yourself (like workspaces, projects, etc.).

这将删除您的安装,除了您自己设置的任何内容(如工作区、项目等)。