Fridrich Strba wrote:
Hello
On 24/09/2021 15:18, Luigi Baldoni wrote:
Hi, I'm new to packaging java applications and I've stumbled upon a small problem: first, how do I request openjdk >= 16 without naming it explicitly? BuildRequires: java-devel >= 16
for building
I tried that. Now javac defaults to 11
Requires: java >= 16
for runtime
Now, if your package is java >= 16 only, please have a look whether it is not possible to make some little changes and make it 1.8+
Probably not worth the trouble in this case.
And more importantly, how do I detect and invoke the correct jvm in the launch script at runtime? You will have to iterate over all compatible javas, they are normally in %_libdir/jvm/java-X-openjdk where X is 11, 13, ....
Looks ugly:/ Is it really the only option? Thanks