如何从 .zip 安装 Eclipse 插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5482554/
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 to install plugin for Eclipse from .zip
提问by Damir
How to install Eclipse plugin from .zip? I have installed plugins by choosing the site and then check but never from .zip. Can anybody help?
如何从 .zip 安装 Eclipse 插件?我已经通过选择站点安装了插件,然后检查但从未从 .zip 中检查。有人可以帮忙吗?
采纳答案by Konstantin Komissarchik
It depends on what the zip contains. Take a look to see if it got content.jar and artifacts.jar. If it does, it is an archived updated site. Install from it the same way as you install from a remote site.
这取决于 zip 包含的内容。看看它是否有 content.jar 和 artifacts.jar。如果是,则它是一个存档的更新站点。从它安装与从远程站点安装相同的方式。
If the zip doesn't contain content.jar and artifacts.jar, go to your Eclipse install's dropins directory, create a subfolder (name doesn't matter) and expand your zip into that folder. Restart Eclipse.
如果 zip 不包含 content.jar 和 artifacts.jar,请转到 Eclipse 安装的 dropins 目录,创建一个子文件夹(名称无关紧要)并将 zip 展开到该文件夹中。重新启动 Eclipse。
回答by crifan
1.makesure your .zip file is an valid Eclipse Plugin
1.确保您的 .zip 文件是有效的 Eclipse 插件
Note:
笔记:
- that means: your .zip file contains folders
features
andplugins
, like this: - for new version Eclipse Plugin, it may also include another two files
content.jar
,artifacts.jar
, example:
- 这意味着:您的 .zip 文件包含文件夹
features
和plugins
,如下所示: - 新版本的Eclipse插件,它可能还包括另外两个文件
content.jar
,artifacts.jar
,例如:
but this is not important for the plugin,
但这对插件并不重要,
the most important is the foldersfeatures
and plugins
最重要的是文件夹features
和plugins
which contains the necessary xxx.jar,
其中包含必要的 xxx.jar,
for example:
例如:
2.for valid Eclipse Plugin .zip file, you have two methods to install it
2.对于有效的Eclipse Plugin .zip文件,您有两种安装方法
(1) auto install
(1) 自动安装
Help -> Install New Software -> Add -> Archive
Help -> Install New Software -> Add -> Archive
then choose your .zip file
然后选择您的 .zip 文件
example:
例子:
(2) manual install
(2) 手动安装
- uncompress .zip file -> got folders
features
andplugins
- copy them into the root folder of Eclipse, which already contains
features
andplugins
- restart Eclipse, then you can see your installed plugin's settings in
Window -> Preferences
- 解压缩 .zip 文件 -> 得到文件夹
features
和plugins
- 将它们复制到Eclipse的根文件夹中,该文件夹已经包含
features
和plugins
- 重新启动 Eclipse,然后你可以看到你安装的插件的设置
Window -> Preferences
for more detailed explanation, can refer my post (written in Chinese):
更详细的解释可以参考我的帖子(中文写的):
回答by My God
This is the easiest way that I found to install a plugin locally at eclipse -
这是我发现在 eclipse 本地安装插件的最简单方法 -
回答by Val
Seen here. You can unzip and
看到这里。您可以解压缩并
Clicking Localwill prefix your location fith file:/C:/etc/folder
单击本地将为您的位置添加前缀 fith file:/C:/etc/folder
You can Click archive instead and select your zip, as suggested in the second popular question. It will prefix with jar://path.zip but it is not accepted by Eclipse itself. So, I used the plain folder solution.
您可以改为单击存档并选择您的 zip,如第二个热门问题中所建议的。它将以 jar://path.zip 为前缀,但它不被 Eclipse 本身接受。所以,我使用了普通文件夹解决方案。
回答by johntrepreneur
The accepted answer from Konstantin worked, but there were a few additional steps. After restarting Eclipse, you still have to go into software updates, find your newly available software, check the box(es) for it, and click the "install" button. Then it'll prompt you to restart again and only then will you see your new views or functionality.
康斯坦丁接受的答案有效,但还有一些额外的步骤。重新启动 Eclipse 后,您仍然需要进行软件更新,找到新可用的软件,选中它的复选框,然后单击“安装”按钮。然后它会提示您再次重新启动,只有这样您才能看到新的视图或功能。
Additionally, you can check the "Error Log" view for any problems with your new plugin that eclipse is complaining about.
此外,您可以检查“错误日志”视图以了解 eclipse 抱怨的新插件的任何问题。
回答by Sithara
Add to Criffan's answer,
添加到 Criffan 的答案,
2.for valid Eclipse Plugin .zip file, you have two method to install it (1) auto install
2.对于有效的Eclipse Plugin .zip文件,您有两种安装方法(1)自动安装
In here when you are trying to install the plugin,sometimes it will give an error like Dialog appears when trying to add plugin
在这里,当您尝试安装插件时,有时会出现错误,例如尝试添加插件时出现对话框
we have to un tick group Items by Categoryin the details tab.Then it will work well.
我们必须在详细信息选项卡中取消按类别分组项目。然后它会工作得很好。
回答by Harry
If you are reading this because you are getting error while updating from the "Install new Software" menu, then you need to do this
如果您正在阅读本文是因为在从“安装新软件”菜单更新时遇到错误,那么您需要执行此操作
- Go to the location from where you want to update ex. http://update.eclemma.org/
- Download everything in the same order just as it is on site (every folder)
- Go to "Install new software", but instead of pasting the url of site paste the location of your harddrive where you downloaded the contents
- 转到您要更新 ex 的位置。http://update.eclemma.org/
- 以与现场相同的顺序下载所有内容(每个文件夹)
- 转到“安装新软件”,而不是粘贴站点的 url,而是粘贴您下载内容的硬盘位置
please note: add the suffix file:/// to the location
ex. file:///C:/Users/harry/Downloads/eclox/
请注意:将后缀 file:/// 添加到位置
ex. file:///C:/Users/harry/Downloads/eclox/
Maybe not the best solution but this gets the work done :)
也许不是最好的解决方案,但这可以完成工作:)
回答by the magnificent
To install the plug-in, unzip the file into the Eclipse installation directory (or the plug-in directory depending on how the plug-in is packaged). The plug-in will not appear until you have restarted your workspace (Reboot Eclipse).
要安装插件,请将文件解压到 Eclipse 安装目录(或插件目录,取决于插件的打包方式)。在您重新启动工作区(重新启动 Eclipse)之前,插件不会出现。
回答by Anil Agrawal
Download the plugin, extract it inside eclipse/dropins folder and restart your Eclipse IDE. You may require to pass --clean along with eclipse command
下载插件,将其解压到 eclipse/dropins 文件夹中,然后重新启动 Eclipse IDE。您可能需要将 --clean 与 eclipse 命令一起传递