如何重新安装已安装的Eclipse插件?

时间:2020-12-23 00:05:47

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,这是否重要?

7 个解决方案

#1


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之前的3.4(3.2,3.3)

    • eclipse/plugins and eclipse/features
    • eclipse / plugins和eclipse / features

    • any other directory provided you define a link by creating a foo.link file inside the links directory of an eclipse installation (you might have to create the [eclipse]\links directory) containing:

      任何其他目录,只要你通过在eclipse安装的links目录中创建一个foo.link文件来定义一个链接(你可能需要创建[eclipse] \ links目录),其中包含:

      path=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 and dropins/foobar/eclipse/features, or foobar.zip, with the zip containing eclipse/plugins and eclipse/features)
    • 将你的插件放在dropins目录中(如dropins / foobar / eclipse / plugins和dropins / foobar / eclipse / features,或foobar.zip,包含eclipse / plugins和eclipse / features的zip)

  • 对于eclipse3.4和3.5,使用p2机制:将你的插件放在dropins目录中(如dropins / foobar / eclipse / plugins和dropins / foobar / eclipse / features,或foobar.zip,包含eclipse / plugins的zip和蚀/特性)

So you should look for a plugin in those directories, and copy them into into the appropriate plugin directory for completing the installation.

因此,您应该在这些目录中查找插件,并将它们复制到相应的插件目录中以完成安装。

#2


EDIT: just adding with what eclipse version i'm working: 3.5 galileo

编辑:只是添加我正在工作的eclipse版本:3.5伽利略

I managed to uninstall using the "Install New Software" option (kind of bad-name to reach an uninstallation instance).

我设法使用“安装新软件”选项卸载(一种坏名称来到达卸载实例)。

You can check this images:

你可以查看这张图片:

如何重新安装已安装的Eclipse插件?如何重新安装已安装的Eclipse插件?如何重新安装已安装的Eclipse插件?

Another way is:

另一种方式是:

Help->About Eclipse->Installation Details

帮助 - >关于Eclipse->安装细节

And there select the plugin you want to uninstall.

然后选择要卸载的插件。

#3


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.

您可以将相关的文件夹和jar从源安装的插件/和features /文件夹复制到目标安装,然后使用-clean参数重新启动目标Eclipse。

#4


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,有一个更简单的解决方案:文件 - >导入 - >安装 - >从现有安装。从第二次安装中选择您的功能,您就完成了。

#5


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安装插件/或/和features /目录复制到目标eclipse安装插件/或/和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.

另外,一般提示:不要含糊,更具体。有时,设置,版本等存在已知问题。具体可以帮助识别复杂的问题。

#6


If the plugin has an update site you can copy its url to the new install and run update.

如果插件有更新站点,您可以将其URL复制到新安装并运行更新。

#7


>>How Do You Reinstall Installed Eclipse Plugins?

You don't.

There is no Reinstall Plugin option in Eclipse.

Eclipse中没有Reinstall Plugin选项。

You can, however, uninstall the plugin (***) and reinstall it using MENU >> Help | Install new Software

但是,您可以使用MENU >> Help |卸载插件(***)并重新安装安装新软件

(***) Follow Sebastian's uninstall instructions, which still work in the latest Mars version of Eclipse.

(***)按照Sebastian的卸载说明进行操作,该说明仍然适用于最新的Mars版本的Eclipse。

#1


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之前的3.4(3.2,3.3)

    • eclipse/plugins and eclipse/features
    • eclipse / plugins和eclipse / features

    • any other directory provided you define a link by creating a foo.link file inside the links directory of an eclipse installation (you might have to create the [eclipse]\links directory) containing:

      任何其他目录,只要你通过在eclipse安装的links目录中创建一个foo.link文件来定义一个链接(你可能需要创建[eclipse] \ links目录),其中包含:

      path=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 and dropins/foobar/eclipse/features, or foobar.zip, with the zip containing eclipse/plugins and eclipse/features)
    • 将你的插件放在dropins目录中(如dropins / foobar / eclipse / plugins和dropins / foobar / eclipse / features,或foobar.zip,包含eclipse / plugins和eclipse / features的zip)

  • 对于eclipse3.4和3.5,使用p2机制:将你的插件放在dropins目录中(如dropins / foobar / eclipse / plugins和dropins / foobar / eclipse / features,或foobar.zip,包含eclipse / plugins的zip和蚀/特性)

So you should look for a plugin in those directories, and copy them into into the appropriate plugin directory for completing the installation.

因此,您应该在这些目录中查找插件,并将它们复制到相应的插件目录中以完成安装。

#2


EDIT: just adding with what eclipse version i'm working: 3.5 galileo

编辑:只是添加我正在工作的eclipse版本:3.5伽利略

I managed to uninstall using the "Install New Software" option (kind of bad-name to reach an uninstallation instance).

我设法使用“安装新软件”选项卸载(一种坏名称来到达卸载实例)。

You can check this images:

你可以查看这张图片:

如何重新安装已安装的Eclipse插件?如何重新安装已安装的Eclipse插件?如何重新安装已安装的Eclipse插件?

Another way is:

另一种方式是:

Help->About Eclipse->Installation Details

帮助 - >关于Eclipse->安装细节

And there select the plugin you want to uninstall.

然后选择要卸载的插件。

#3


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.

您可以将相关的文件夹和jar从源安装的插件/和features /文件夹复制到目标安装,然后使用-clean参数重新启动目标Eclipse。

#4


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,有一个更简单的解决方案:文件 - >导入 - >安装 - >从现有安装。从第二次安装中选择您的功能,您就完成了。

#5


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安装插件/或/和features /目录复制到目标eclipse安装插件/或/和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.

另外,一般提示:不要含糊,更具体。有时,设置,版本等存在已知问题。具体可以帮助识别复杂的问题。

#6


If the plugin has an update site you can copy its url to the new install and run update.

如果插件有更新站点,您可以将其URL复制到新安装并运行更新。

#7


>>How Do You Reinstall Installed Eclipse Plugins?

You don't.

There is no Reinstall Plugin option in Eclipse.

Eclipse中没有Reinstall Plugin选项。

You can, however, uninstall the plugin (***) and reinstall it using MENU >> Help | Install new Software

但是,您可以使用MENU >> Help |卸载插件(***)并重新安装安装新软件

(***) Follow Sebastian's uninstall instructions, which still work in the latest Mars version of Eclipse.

(***)按照Sebastian的卸载说明进行操作,该说明仍然适用于最新的Mars版本的Eclipse。