Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define minimum JRE requirement (1.5 _or higher_)?

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?

like image 702
StaxMan Avatar asked Dec 29 '25 01:12

StaxMan


1 Answers

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.

like image 164
Gilbert Le Blanc Avatar answered Dec 30 '25 15:12

Gilbert Le Blanc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!