Eclipse:在Eclipse中安装插件时出现找不到jar文件的错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15680497/
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
Eclipse : Getting Error as Could not find jar file while installing Plugin in Eclipse
提问by user974802
I was following this below website http://visualvm.java.net/eclipse-launcher.htmlfor installing VisualVM into Eclipse Helios Version 3.6 , for this as mentioned i downloaded visualvm_launcher_u1_eclipse_36 and also under in Eclipse Menu Window --->Preferences ---> Installed JRE ---> Pointed JDK Path in JRE Settings C:\Program Files\Java\jdk1.6.0_27
我正在关注以下网站 http://visualvm.java.net/eclipse-launcher.html以将 VisualVM 安装到 Eclipse Helios 3.6 版中,为此我下载了visualvm_launcher_u1_eclipse_36 以及 Eclipse 菜单窗口 ---> Preferences - --> 已安装 JRE ---> 在 JRE 设置中指向 JDK 路径 C:\Program Files\Java\jdk1.6.0_27
But when i tried to install this VisualVM into Eclipse by
但是当我尝试将这个 VisualVM 安装到 Eclipse 中时
Eclipse Menu ---> Install New Software --->Add -- >Archive option
Eclipse 菜单 ---> 安装新软件 ---> 添加 --> 存档选项
i am getting the below exception
我收到以下异常
Could not find jar file:file:/D:/VisualVM/visualvm_launcher_u1_eclipse_36.zip!/
找不到 jar 文件:file:/D:/VisualVM/visualvm_launcher_u1_eclipse_36.zip!/
Please see the image related to the Exception .
请参阅与 Exception 相关的图像。
回答by jxn
This is what I did to get it installed.
这就是我为安装它所做的。
downloaded and unzipped to C:/visualvm_launcher_u1_eclipse_36/
Eclipse Window --->Preferences ---> Available Software Sites --> Add (Name: VisualVM; Location: file:/C:/visualvm_launcher_u1_eclipse_36/)
Eclipse Help ---> Install New Software ---> Select VisualVM from drop-down menu ---> Expand Uncategorized ---> Select VisualVM Launcher Feature ---> Next
下载并解压到 C:/visualvm_launcher_u1_eclipse_36/
Eclipse 窗口 ---> 首选项 ---> 可用软件站点 --> 添加(名称:VisualVM;位置:文件:/C:/visualvm_launcher_u1_eclipse_36/)
Eclipse 帮助 ---> 安装新软件 ---> 从下拉菜单中选择 VisualVM ---> 展开未分类 ---> 选择 VisualVM 启动器功能 ---> 下一步
回答by Tomas Hurka
It looks like you are not following the steps for installation. You should:
您似乎没有按照安装步骤进行操作。你应该:
- unzip visualvm_launcher_u1_eclipse_36.zip into directory of your choice
- add local update site pointing to the chosen directory
- install VisualVM Launcher Feature
- 将 visualvm_launcher_u1_eclipse_36.zip 解压到您选择的目录中
- 添加指向所选目录的本地更新站点
- 安装 VisualVM 启动器功能
回答by demongolem
The file itself may be corrupt that you are trying to add as an archive. Examine the root level of the file and make sure the correct components are there. Right now, I am trying to install EPIC in such a way. What I see in the zip file at the root level are:
您尝试添加为存档的文件本身可能已损坏。检查文件的根级别并确保存在正确的组件。现在,我正在尝试以这种方式安装 EPIC。我在根级别的 zip 文件中看到的是:
- features (folder)
- plugins (folder)
- README.txt (file)
- site.xml (file)
- 功能(文件夹)
- 插件(文件夹)
- README.txt(文件)
- site.xml(文件)