简体   繁体   English

将java需求添加到eclipse插件

[英]Add java requirement to eclipse plugin

I have made a eclipse plugin and I was wondering is there any way to specify what version of java is needed? 我制作了一个eclipse插件,我想知道有没有办法指定需要什么版本的java?

My plugin only works with java 1.7 and I would like to make it so that the plugin does not install if java 1.7 is not installed. 我的插件只适用于java 1.7,我想这样做,如果没有安装java 1.7,插件就不会安装。

Add the following header to the MANIFEST.MF of your Eclipse plugin: 将以下标头添加到Eclipse插件的MANIFEST.MF中:

Bundle-RequiredExecutionEnvironment: JavaSE-1.7

Which specifies that your plugin requires Java 1.7 in-order for your plugin to install. 其中指定您的插件需要Java 1.7才能安装插件。 From OSGi wiki: 来自OSGi wiki:

The Bundle-RequiredExceptionEnviornment presents a list of Execution Environments that must be present for this bundle to install. Bundle-RequiredExceptionEnviornment提供了要安装此捆绑包的必须存在的执行环境列表。

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

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