How to determine the minimum JRE requirement (1.5 or higher)?

The OSGi manifest entry "bundleRequiredExecutionEnvironment" can be used to indicate the JRE on which the package can be used, but it looks like it is a strict test, so if I specify the value "J2SE-1.5", the package cannot be used at 1.6 or higher. It seems strange; my assumption was that this would be just a basic, not an exact match.

But if the semantics of a property are an exact match, what would it be to say "1.5 or higher"? Or could this be an OSGi container error, which is a misunderstanding?

+3
source share
1 answer

It seems you should specify all valid JRE environments.

Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6

Java 1.7 , .

+2

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


All Articles