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.
source
share