如何重新安装已安装的 Eclipse 插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/627976/
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
How Do You Reinstall Installed Eclipse Plugins?
提问by Joe
How do you "remove" or "copy" an eclipse plugin from one eclipse install to another? E.g. I have two installs of eclipse, one of which has a plugin installed that I don't have an installer for nor is it readily available online. Is it possible to get this plugin installed on my other version of eclipse? If so, how?
你如何“删除”或“复制”一个eclipse插件从一个eclipse安装到另一个?例如,我安装了两次 eclipse,其中一次安装了一个插件,但我没有安装程序,也无法在线获取。是否可以在我的其他版本的 eclipse 上安装此插件?如果是这样,如何?
Also, does it matter if my two versions of eclipse are really different versions, i.e. one is 3.4 and the other is 3.3 or 3.2?
另外,如果我的两个版本的 eclipse 是真正不同的版本,即一个是 3.4 而另一个是 3.3 或 3.2,这是否重要?
采纳答案by VonC
As mentioned in my answer to your last question, and since (again) the chosen answer is very poor on the specifics, a plugin lives in:
正如我在对您最后一个问题的回答中所提到的,并且由于(再次)所选答案在细节上非常差,因此插件位于:
for eclipse previous to 3.4 (3.2, 3.3)
- eclipse/plugins and eclipse/features
any other directory provided you define a link by creating a
foo.link
file inside the linksdirectory of an eclipse installation (you might have to create the[eclipse]\links
directory) containing:path=C:/eclipse/extensions/foobar
对于 3.4 (3.2, 3.3) 之前的 eclipse
- eclipse/plugins 和 eclipse/features
通过
foo.link
在Eclipse 安装的链接目录中创建一个文件来定义链接的任何其他目录(您可能必须创建[eclipse]\links
目录),其中包含:路径=C:/eclipse/extensions/foobar
With references the foobar plugins, with the following subdirectories:
引用 foobar 插件,具有以下子目录:
C:/eclipse/extensions/foobar/eclipse/plugins
C:/eclipse/extensions/foobar/eclipse/features
- for eclipse3.4 and 3.5, with p2 mechanism:
- by putting your plugin in the dropins directory(like
dropins/foobar/eclipse/plugins
anddropins/foobar/eclipse/features
, or foobar.zip, with the zip containingeclipse/plugins
andeclipse/features
)
- by putting your plugin in the dropins directory(like
- 对于 eclipse3.4 和 3.5,使用 p2 机制:
- 通过将您的插件放在dropins 目录中(例如
dropins/foobar/eclipse/plugins
anddropins/foobar/eclipse/features
或 foobar.zip,其中 zip 包含eclipse/plugins
和eclipse/features
)
- 通过将您的插件放在dropins 目录中(例如
So you should look for a plugin in those directories, and copy them into into the appropriate plugin directory for completing the installation.
因此,您应该在这些目录中查找插件,并将它们复制到相应的插件目录中以完成安装。
回答by Sebastian
EDIT: just adding with what eclipse version i'm working: 3.5 galileo
编辑:只需添加我正在使用的 Eclipse 版本:3.5 galileo
I managed to uninstall using the "Install New Software" option (kind of bad-name to reach an uninstallation instance).
我设法使用“安装新软件”选项卸载(到达卸载实例的坏名称)。
You can check this images:
您可以查看此图像:
Another way is:
另一种方式是:
Help->About Eclipse->Installation Details
帮助->关于Eclipse->安装详情
And there select the plugin you want to uninstall.
然后选择要卸载的插件。
回答by Bananeweizen
For more recent versions of Eclipse, there is a much more simple solution: File -> Import -> Install -> From existing installation. Select your features from that second installation and you are done.
对于较新版本的 Eclipse,有一个更简单的解决方案:File -> Import -> Install -> From existing installation。从第二个安装中选择您的功能,您就完成了。
回答by Fabian Steeg
You could copy the relevant folders and jars from the source installation's plugins/
and features/
folders to the target install and then restart the target Eclipse with the -clean
parameter.
您可以将源安装plugins/
和features/
文件夹中的相关文件夹和 jar 复制到目标安装,然后使用-clean
参数重新启动目标 Eclipse 。
回答by Kees de Kooter
If the plugin has an update site you can copy its url to the new install and run update.
如果插件有更新站点,您可以将其 url 复制到新安装并运行更新。
回答by Jan Jungnickel
Yes, you can do this easily by copying the corresponding directory (or jar) from the source eclipse install plugins/ or/and features/ directory to the target eclipse install plugin/ or/and features/ directory.
是的,您可以通过将相应的目录(或 jar)从源 eclipse install plugins/ 或/和 features/ 目录复制到目标 eclipse install plugin/ 或/和 features/ 目录来轻松完成此操作。
Depending on the Plugin you may encounter compatibility issues when source and target versions differ. Some Plugins work with a braod line of eclipse versions, some require a distinct version.
当源版本和目标版本不同时,您可能会遇到兼容性问题,具体取决于插件。一些插件适用于一系列 eclipse 版本,有些需要不同的版本。
Also, a general hint: Don't be vague, be more specific. Sometimes there are known issues with setups, versions and the like. Being specific can potentially help identify a complex problem.
另外,一般提示:不要含糊其辞,要更具体。有时,设置、版本等存在已知问题。具体可能有助于识别复杂的问题。
回答by l3x
>>How Do You Reinstall Installed Eclipse Plugins?
You don't.
你没有。
There is no Reinstall Pluginoption in Eclipse.
Eclipse 中没有重新安装插件选项。
You can, however, uninstall the plugin (***) and reinstall it using MENU >> Help | Install new Software
但是,您可以卸载插件 (***) 并使用 MENU >> Help | Install new Software
(***) Follow Sebastian's uninstall instructions, which still work in the latest Mars version of Eclipse.
(***) 按照 Sebastian 的卸载说明进行操作,该说明仍然适用于最新的 Mars 版本的 Eclipse。