在 Eclipse 3.5 中安装一个普通的插件 jar

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/926594/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:45:14  来源:igfitidea点击:

Installing a plain plugin jar in Eclipse 3.5

eclipse

提问by Robert Munteanu

Since Eclipse 3.5 there seems to be no option to have drop a plugin jar ( not a feature ) in the Eclipse base directory and have it picked up at next startup.

从 Eclipse 3.5 开始,似乎没有选项可以在 Eclipse 基本目录中放置一个插件 jar(不是特性),并在下次启动时将其取出。

Is there any possiblity to have plain plugins jars installed in Eclipse 3.5?

是否有可能在 Eclipse 3.5 中安装普通插件 jars?

回答by jamesh

Since the advent of p2, you should be using the dropins directoryinstead.

自从 p2 出现以来,您应该改用dropins 目录

To be completely clear create "plugins" under "/dropins" and make sure to restart eclipse with the "-clean" option.

为了完全清楚,在“/dropins”下创建“plugins”并确保使用“-clean”选项重新启动eclipse。

回答by zvikico

Simplest way - just put in the Eclipse plugins folder. You can start Eclipse with the -clean option to make sure Eclipse cleans its' plugins cache and sees the new plugin.

最简单的方法 - 只需放入 Eclipse 插件文件夹。您可以使用 -clean 选项启动 Eclipse,以确保 Eclipse 清除其插件缓存并查看新插件。

In general, it is far more recommended to install plugins using proper update sites.

一般来说,更建议使用适当的更新站点安装插件。

回答by Nenad Bulatovic

For Eclipse Mars (I've just verified that) you to do this (assuming that C:\eclipseMarsEE is root folder of your Eclipse):

对于 Eclipse Mars(我刚刚验证过),您可以这样做(假设 C:\eclipseMarsEE 是 Eclipse 的根文件夹):

  1. Add pluginsfolder to C:\eclipseMarsEE\dropins so that it looks like: C:\eclipseMarsEE\dropins\plugins
  2. Then add plugin you want to install into that folder: C:\eclipseMarsEE\dropins\plugins\someplugin.jar
  3. Start Eclipse with clean option.
  4. If you are using shortcut on desktop then just right click on Eclipse icon > Properties and in Target field add: -clean like this: C:\eclipseMarsEE\eclipse.exe -clean
  1. plugins文件夹添加到 C:\eclipseMarsEE\dropins,使其看起来像:C:\eclipseMarsEE\dropins\plugins
  2. 然后将您要安装的插件添加到该文件夹​​中:C:\eclipseMarsEE\dropins\plugins\someplugin.jar
  3. 使用干净选项启动 Eclipse。
  4. 如果您在桌面上使用快捷方式,则只需右键单击 Eclipse 图标 > 属性,然后在目标字段中添加:-clean,如下所示:C:\eclipseMarsEE\eclipse.exe -clean

enter image description here

在此处输入图片说明

  1. Start Eclipse and verify that your plugin works.
  2. Remove -cleanoption from Target field.
  1. 启动 Eclipse 并验证您的插件是否有效。
  2. 从目标字段中删除-clean选项。

回答by Ohad Kravchick

go to Help-> Install New Software...-> Add-> Archive.... Done.

Help-> Install New Software...-> Add-> Archive...。完毕。

回答by Hyman

in Eclipse 4.4.1

在 Eclipse 4.4.1 中

  1. copy jar in "C:\eclipse\plugins"
  2. edit file "C:\eclipse\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info"
  3. add jar info. example: com.soft4soft.resort.jdt,2.4.4,file:plugins\com.soft4soft.resort.jdt_2.4.4.jar,4,false
  4. restart Eclipse.
  1. 将 jar 复制到“C:\eclipse\plugins”
  2. 编辑文件“C:\eclipse\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info”
  3. 添加罐子信息。例子: com.soft4soft.resort.jdt,2.4.4,file:plugins\com.soft4soft.resort.jdt_2.4.4.jar,4,false
  4. 重新启动 Eclipse。

回答by Farai Mugaviri

This is how you can go about it:

你可以这样做:

  1. Close Eclipse
  2. Download a jar plugin (let's assume its testNG.jar)
  3. Copy testNG.jar to a certain folder (say C:\Project\resources\plugins)
  4. In your Eclipse installation folder, there is a folder named dropins (could be C:\eclipse\dropins), create a .link file in that folder, (like plugins.link)
  5. Open this file with any text editor and enter this one line:
    path=C:/Project/resources/plugins
  6. Save the file and start Eclipse.
  1. 关闭日食
  2. 下载一个 jar 插件(假设它的 testNG.jar)
  3. 将 testNG.jar 复制到某个文件夹(比如 C:\Project\resources\plugins)
  4. 在您的 Eclipse 安装文件夹中,有一个名为 dropins(可能是 C:\eclipse\dropins)的文件夹,在该文件夹中创建一个 .link 文件,(如 plugins.link)
  5. 使用任何文本编辑器打开此文件并输入这一行:
    path=C:/Project/resources/plugins
  6. 保存文件并启动 Eclipse。

And you are good to go!

Please do not forget to change your backward slashes in your plugins folder path to forward slashes on step 5. I used to forget and it would take my time unnecessarily.

你很高兴去!

请不要忘记将您的插件文件夹路径中的反斜杠更改为第 5 步中的正斜杠。我曾经忘记了,这会不必要地花费我的时间。