Plugin update from 1.6 to 1.7

I am trying to update a project (a set of plugins) from 1.6 to 1.7. Therefore, I changed MANIFEST.MFfrom Bundle-RequiredExecutionEnvironment: JavaSE-1.6to before. Bundle-RequiredExecutionEnvironment: JavaSE-1.7However, after this update, if I try to export the plugin as a fragment of the plugin, I received this Eclipse error:

Processing inclusion from feature org.eclipse.pde.container.feature: Bundle myplugin_1.0.0 failed to resolve.:
    Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.7
    Host plug-in JavaSE_0.0.0 has not been found.

Edit:

MANIFEST.MF:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Auth Plug-in
Bundle-SymbolicName: __NAME__;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: AVendor
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Export-Package: __A_PACKAGE_NAME__

If I change the Target-Platform to Running platform, the error will disappear (but, obviously, I cannot switch the target platform for the entire project). Therefore, I suspect that the target platform is in some way wrong ...

EDIT:

If I delete the line

Bundle-RequiredExecutionEnvironment: JavaSE-1.7

export completed successfully.

+4
source share
3 answers

Uh, eclipse 3.5.1, 1.6, 1.7. .

+2

:

RCP, Java 8. "Bundle-RequiredExecutionEnvironment" .

+1

Eclipse Mars 4.5.0 (Build id: 20150621-1200) Java 8.

MANIFEST.MF

-: 1.0
Bundle-ManifestVersion: 2
...
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.osgi.framework; version = "1.3.0"

"Bundle-RequiredExecutionEnvironment: JavaSE-1.8", "Bundle-RequiredExecutionEnvironment: JavaSE-1.7", .

0
source

Source: https://habr.com/ru/post/1523508/


All Articles