Java 尝试安装插件时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25094583/
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
Error when try install plugin
提问by user3855547
I'm trying to install a plugin in Eclipse Luna. I installed Papyrus and am trying to install SWT designer, but before the download/installation is completed I get an error:
我正在尝试在 Eclipse Luna 中安装一个插件。我安装了 Papyrus 并尝试安装 SWT 设计器,但在下载/安装完成之前我收到一个错误:
An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase. session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=). Error reading signed content. error in opening zip file
An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase. session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=). Error reading signed content. error in opening zip file
After this error I can't install anything and the install manager does not work anymore and shows me the same error all the time only one way I delete the current Eclipse directory and extract it again.
出现此错误后,我无法安装任何东西,安装管理器不再工作,并且一直向我显示相同的错误,只有一种方法是我删除当前的 Eclipse 目录并再次提取它。
This time I install Papyrus, SWT designer and some other, but I get the error between install another plugin again. This is wrong if I get an error on install any of plugin reinstalling Eclipse and the other plugin again.
这次我安装了 Papyrus、SWT 设计器和其他一些插件,但在再次安装另一个插件之间出现错误。如果我在安装任何插件时出现错误,重新安装 Eclipse 和另一个插件,这是错误的。
Is this a bug or a problem?
这是错误还是问题?
回答by Alex L
It's a failure in Eclipse.
这是 Eclipse 中的失败。
Try to uninstall it then download it from: https://www.eclipse.org/downloads/
尝试卸载它然后从以下位置下载:https: //www.eclipse.org/downloads/
and install it.
并安装它。
回答by user3855547
OK finally i found the solution for solve this problem. I don't know why Eclipse is showing me this error and i don't know if this is the best solution. I solve my problem with delete the artifacts.xmlfile in Eclipse root directory.
好的,最后我找到了解决这个问题的方法。我不知道为什么 Eclipse 会向我显示这个错误,我不知道这是否是最好的解决方案。我解决了删除Eclipse 根目录中的artifacts.xml文件的问题。
After deleting this file try to install that plugin again but this time after few second everything completes and works perfectly.
删除此文件后,尝试再次安装该插件,但这次几秒钟后一切都完成并完美运行。
UPDATE:If you get that error again then just go to Eclipses' root directory and search for "artifacts.xml" and delete all the files is in the result ;)
更新:如果您再次遇到该错误,则只需转到 Eclipses 的根目录并搜索“artifacts.xml”并删除结果中的所有文件;)
回答by The Prince
Run Eclipse as an administrator, then try to install the plugin again via help->Install New Software. it worked for me
以管理员身份运行 Eclipse,然后尝试通过 help->Install New Software 再次安装插件。它对我有用
回答by Taras B
I installed E4 RCP Patch(bugzillas 445122)(Install new software -> Eclipse 4.4.1 Patches for bug 445122) and this helped me.
我安装了 E4 RCP 补丁(bugzillas 445122)(安装新软件 -> Eclipse 4.4.1 补丁,用于错误 445122),这对我有帮助。
回答by Zak Benza
Try this from the Eclipse marketplace 1. Click Help>Eclipse marketPlace (Eclipse marketPlace dialog box will open) 2. Type the name of your plugin (ex: type SWT Designer) in the find edit box, make sure to keep default values for All markets and all categories, and click go button. 3. The page will refresh and display all plugins that have swt designer in their name. 4. Click intsall or update button on the one that fits your needs. 5. The installation or update will be done successfully. 6. Restart your eclipse 7. The installation will be fine.
从 Eclipse 市场尝试此操作 1. 单击帮助>Eclipse marketPlace(Eclipse marketPlace 对话框将打开) 2. 在查找编辑框中键入您的插件的名称(例如:键入 SWT Designer),确保保留所有的默认值市场和所有类别,然后单击转到按钮。3. 页面将刷新并显示名称中包含 swt 设计器的所有插件。4. 单击适合您需要的 intsall 或更新按钮。5. 安装或更新将成功完成。6. 重新启动你的 eclipse 7. 安装会好的。
回答by Akshay
Remove the
artifacts.xml
from the folder.Keep a copy of it in some other location (preferably external devices such as pendrive or hard disks etc).
Restart Eclipse.
Install the software plugin you want to install (it will ask for permission again).
After installation paste the
artifacts.xml
file back into the eclipse folder.Restart eclipse and set the SDK location.
Code to death!!! ;p
artifacts.xml
从文件夹中删除。将它的副本保存在其他位置(最好是外部设备,如随身碟或硬盘等)。
重新启动 Eclipse。
安装您要安装的软件插件(它会再次请求许可)。
安装后将
artifacts.xml
文件粘贴回 eclipse 文件夹。重启eclipse并设置SDK位置。
码死!!!;p
回答by Nathan Meyer
I ran across this problem while updating eclipse's internal software. I discovered that the jar file org.eclipse.epp.mpc.help.ui_1.5.2.v20161004-1655.jar (found in the error details) in the eclipse plugins directory was corrupted (7-Zip was unable to inspect its contents). I redownloaded and manually replaced this file with one downloaded from their site, and I was then able to install the software without an issue. Hope this helps :)
我在更新 eclipse 的内部软件时遇到了这个问题。我发现eclipse插件目录中的jar文件org.eclipse.epp.mpc.help.ui_1.5.2.v20161004-1655.jar(在错误详细信息中找到)已损坏(7-Zip无法检查其内容) . 我重新下载并用从他们网站下载的文件手动替换了这个文件,然后我就可以毫无问题地安装该软件了。希望这可以帮助 :)
(If it was a different JAR file for you, you can click "show directory contents" on this pageand download the one you need.)
(如果它是不同的 JAR 文件,您可以单击此页面上的“显示目录内容”并下载您需要的文件。)
回答by Madhav
org.aspectj.weaver_1.8.10.201704242114.jar
File will be downloaded for google, and it can be placed in eclipse/plugin/org.aspectj.weaver_1.8.10.201704242114.jar
can be replaced with older jar file.........it can be solved for your problem...........
org.aspectj.weaver_1.8.10.201704242114.jar
文件会为google下载,可以放入eclipse/plugin/org.aspectj.weaver_1.8.10.201704242114.jar
可以替换旧的jar文件..........可以解决你的问题..........
回答by Aravindh Gopi
Recently i had this issue & i did a few workaround to make things right,
最近我遇到了这个问题,我做了一些解决方法来解决问题,
Drag and dropped from official page, normally eclipse restarts after the download, and a pop-up will ask us to select the svn connectors from list. but that didn't happened to me.
从官方页面拖拽,一般eclipse下载后会重启,弹出一个弹框要求我们从list中选择svn连接器。但这并没有发生在我身上。
Install svn Plugin.(By drag and drop or install new software or any)
After this goto
window->preferences->Team->svn
select
Connector
Tab and clickGet connectors
Button then the prompt will appear select any oneconnector
to get it done (i use NativeHL 1.8).
安装 svn 插件。(通过拖放或安装新软件或任何)
在这个转到
window->preferences->Team->svn
选择
Connector
Tab 并单击Get connectors
Button 然后会出现提示选择任何一个connector
来完成它(我使用 NativeHL 1.8)。
回答by Kent
I solved this problem by editing the artifacts.xml.
我通过编辑 artifacts.xml 解决了这个问题。
- Close Eclipse.
- Edit the artifacts.xml.
- Find and delete previous entries related to the plugin you are trying to install.
- Save artifacts.xml.
- 关闭日食。
- 编辑 artifacts.xml。
- 查找并删除与您尝试安装的插件相关的先前条目。
- 保存 artifacts.xml。
After this you should be able to start Eclipse normally and install your plugin.
在此之后,您应该能够正常启动 Eclipse 并安装您的插件。