简体   繁体   English

安装IMP eclipse插件

[英]Installing IMP eclipse plugin

I have my eclipse plugin developed with IMP . 我有用IMP开发的eclipse插件。 I need to export the plugin so it can be installed on other machines. 我需要导出插件,以便可以将其安装在其他计算机上。 I tried to export using: 我尝试使用以下方式导出:

File->Export->Deployable plugin and fragments File-> Export-> Deployable插件和片段

and saved it in zipfile. 并将其保存在zipfile中。 I took the jar created and put it under eclipse/plugins. 我把创建的jar放在eclipse / plugins下。 After restarting eclipse I still don't have the plugin enabled. 重新启动eclipse之后,我仍然没有启用插件。 I checked under the Plugin registry view and it seems inactive. 我在“插件”注册表视图下进行了检查,它似乎处于非活动状态。 the Diagnose option gave the following information: “诊断”选项提供了以下信息:

Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.7 缺少约束:Bundle-RequiredExecution环境:JavaSE-1.7

I checked my MANIFEST.MF file and it does contain the line: 我检查了MANIFEST.MF文件,它确实包含以下行:

Bundle-RequiredExecutionEnvironment: JavaSE-1.7 捆绑包所需的执行环境:JavaSE-1.7

any ideas? 有任何想法吗?

You created the plug-in using Java 1.7, while the target Eclipse was using 1.6 or 1.5. 您是使用Java 1.7创建插件的,而目标Eclipse是使用1.6或1.5的。 You could alter the dependencies of your plug-in by 您可以通过以下方式更改插件的依赖性

  1. changing the Bundle-RequiredExecutionEnvironment to JavaSE-1.6 or J2SE-1.5 将Bundle-RequiredExecutionEnvironment更改为JavaSE-1.6或J2SE-1.5
  2. and updating the build path to the older Java source bundles: Project properties/Java build path, and edit the JRE System Library element. 并将构建路径更新为较旧的Java源包:项目属性/ Java构建路径,然后编辑JRE系统库元素。

Btw, it is a better idea of creating an update site instead of putting the plug-ins directly into the eclipse/plugins directory - it can cause any number of errors during installation that are hard to debug. 顺便说一句,创建一个更新站点是一个更好的主意,而不是将插件直接放置到eclipse / plugins目录中-这会在安装过程中引起许多难以调试的错误。 For details, see my corresponding blog post (sry for the self-advertisement): http://cubussapiens.hu/2010/08/update-sites-in-the-p2-era/ 有关详细信息,请参阅我的相应博客文章(对自我广告表示满意): http : //cubussapiens.hu/2010/08/update-sites-in-the-p2-era/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM