Open mizdebsk opened 2 weeks ago
This will not work for me here if there is only java-1_8_0-openjdk package installed. I have some users that insist using that on some systems :)
OK, if there is no other java-N-openjdk installed, it would work through the /usr/bin/java alternative. But in other situations, it would mean that they have to change their scripts to set it to the jre subdir.
Right, this is scoped for next major release (7.0.0) when we can assume that Java 8 is no longer relevant. On older systems javapackages 6.x can still be used.
Currently the
java
command is searched in the following locations under JAVA_HOME:jre/sh/java
- old IBM Java, at least on AIXjre/bin/java
no longer relevant since Jigsaw (Java >= 9)bin/java
- still usedbin/java
is the only one currently used. Therefore Javapackages should look forjava
command only under${JAVA_HOME}/bin/java
and ignore the other two locations.