/usr/bin/texosquery-jre8 is in texlive-extra-utils 2017.20180305-2.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/../share/texlive/texmf-dist/scripts/texosquery/texosquery-jre8.sh
/usr/bin/../share/texlive/texmf-dist/scripts/texosquery/texosquery-jre8.sh