fedora-java / javapackages

Macros and scripts for Java packaging support
Other
7 stars 15 forks source link

Don't search for java command in legacy locations #121

Open mizdebsk opened 2 weeks ago

mizdebsk commented 2 weeks ago

Currently the java command is searched in the following locations under JAVA_HOME:

bin/java is the only one currently used. Therefore Javapackages should look for java command only under ${JAVA_HOME}/bin/java and ignore the other two locations.

fridrich commented 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 :)

fridrich commented 2 weeks ago

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.

mizdebsk commented 2 weeks ago

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.