Reputation: 116512
OSGi manifest entry "bundleRequiredExecutionEnvironment" can be used to specify JRE on which given bundle can be used on, but it seems like this is a strict check such that if I specify value of "J2SE-1.5", bundle could not be used on 1.6 or above. This seems strange; my assumption was that this would just be the baseline, not exact match.
But if the semantic of property are exact match, what would be the way to indicate "1.5 or higher"? Or could this be a bug of OSGi container in question misinterpreting requirement?
Upvotes: 3
Views: 1013
Reputation: 51445
It appears you have to specify all of the valid JRE environments.
Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6
When Java 1.7 becomes available, you'll have to add that as well.
Upvotes: 2