Java dummy package?

Is there a dummy package for Java, such as exists for TeX Live (https://ctan.org/pkg/texlive-dummy-fedora, or how can I create one? I would rather not have Java on my system, but LibreOffice depends on it.

I’m pretty sure LibreOffice actually needs Java to run. Having a dummy package for it will not work.

On Ubuntu, archlinux and macos I could install libreoffice without java. AFAIK, only the database module uses java.