You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux平台Eclipse SDK 4.3使用jrmtool_v1.0.0插件的构建路径问题

解决Eclipse SDK 4.3中jrmtool_v1.0.0的构建路径错误

在Linux(gtk-x86_64)平台的Eclipse SDK 4.3中使用旧版插件jrmtool_v1.0.0时,出现以下构建路径缺失依赖的错误:

1. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar'

2. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.jface_2.1.0/jface.jar'

3. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.swt.win32_2.1.0/ws/win32/swt.jar'

4. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.text_2.1.0/text.jar'

5. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.draw2d_2.1.1/draw2d.jar'

6. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.core.boot_2.1.0/boot.jar'

7. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.core.resources_2.1.0/resources.jar'

8. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.jdt.core_2.1.0/jdtcore.jar'

9. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.ui.views_2.1.0/views.jar'

10. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar'

11. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.ui.editors_2.1.0/editors.jar'

12. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.core.runtime_2.1.0/runtime.jar'

13. Project 'eclipse jRMTool4' is missing required library: '/home/akhil/Downloads/Softwares/Eclipse/eclipse/plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar'

14. The project cannot be built until build path errors are resolved.

解决步骤

1. 替换Windows平台SWT依赖为Linux版本

错误中引用的org.eclipse.swt.win32_2.1.0是Windows专属的SWT包,与Linux gtk-x86_64环境不匹配:

  • 右键项目,打开Properties > Java Build Path > Libraries
  • 找到并移除指向org.eclipse.swt.win32_2.1.0/ws/win32/swt.jar的引用
  • 点击Add External JARs,在Eclipse 4.3安装目录的plugins文件夹中,找到对应Linux gtk-x86_64的SWT包(文件名类似org.eclipse.swt.gtk.linux.x86_64_4.3.0.v20130605-2004.jar),添加到构建路径

2. 替换旧版本依赖为Eclipse 4.3兼容版本

jrmtool_v1.0.0依赖的2.1.0版本Eclipse核心组件,在Eclipse 4.3环境中不存在:

  • 在Java Build Path > Libraries中,逐个移除所有标注为"missing"的2.1.0版本JAR引用
  • 通过Add Library > Eclipse Libraries,选择Eclipse 4.3自带的对应组件库(比如JFace、Core Runtime、UI Workbench等);或者直接通过Add External JARs,从Eclipse安装目录的plugins文件夹中选取对应组件的最新版本JAR

3. 更新插件配置文件(插件项目专属)

如果jrmtool_v1.0.0是Eclipse插件项目,需调整配置兼容Eclipse 4.3:

  • 打开项目根目录的MANIFEST.MF文件,找到Require-Bundle节点,将每个依赖的版本范围修改为兼容4.3的区间(比如把bundle-version="[2.1.0,2.1.0]"改为bundle-version="[2.1.0,4.3.0]")
  • 确保Bundle-RequiredExecutionEnvironment设置为Eclipse 4.3支持的JRE版本(比如JavaSE-1.6或JavaSE-1.7)
  • 同步更新plugin.xml中的依赖配置,保持与MANIFEST.MF一致

4. 清理并重建项目

完成所有修改后:

  • 点击菜单栏Project > Clean,选择当前项目清理构建缓存
  • 右键项目,选择Build Project重新构建

内容的提问来源于stack exchange,提问作者Akhil Akkapelli

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.02 20:44:54