Add 3rd party library to an eclipse plugin(将 3rd 方库添加到 Eclipse 插件)
问题描述
在 Eclipse 插件中包含附加 JAR 文件的正确方法是什么?我自己的插件需要 apache-commons-io.我将 JAR 复制到我的插件目录中,并通过插件清单的依赖项"选项卡添加它.这对我有用,但我插件的其他用户必须手动下载 Commons-IO.
What is the right way to include an additional JAR file in an Eclipse plugin? My own plugin requires apache-commons-io. I copied the JAR into my plugins directory and added it via the "Dependencies" tab of the plugin manifest. This works for me, but other users of my plugins will have to download Commons-IO manually.
在我的插件中打包 Commons-IO 的正确方法是什么?
What is the correct way to package Commons-IO in my plugin?
推荐答案
我通常使用以下策略:
- 如果我可以找到打包为捆绑包的问题 JAR - 即
MANIFEST.MF
包含正确的条目 - 然后我使用它.查看 Orbit 项目 了解一组预打包的各种捆绑包.org.apache.commons.io
已经在这里了... - 如果这不可能,那么我只需将 JAR 包含在我的包中,然后更新
MANIFEST.MF
- 例如Bundle-ClassPath: library.jar,.
- If I can find the JAR in question packaged as a bundle - i.e. the
MANIFEST.MF
contains the correct entries - then I use this. Have a look at the Orbit project for a set of pre-packaged bundles of all sorts.org.apache.commons.io
is already here... - If that is not possible, then I just include the JAR in my bundle, and updates
MANIFEST.MF
- e.g.Bundle-ClassPath: library.jar,.
这篇关于将 3rd 方库添加到 Eclipse 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将 3rd 方库添加到 Eclipse 插件


基础教程推荐
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 降序排序:Java Map 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01