Looks like <http://cgit.freedesktop.org/libreoffice/core/commit/?id=dd6c4f4db1d62268d73e09ae52d23f760a967dcc> "fdo#46102: Load Java scripts with class loaders that actually find them" was not necessary after all and rather caused new regressions, see bug 49517.
Looks like <http:// cgit.freedeskto p.org/libreoffi ce/core/ commit/ ?id=dd6c4f4db1d 62268d73e09ae52 d23f760a967dcc> "fdo#46102: Load Java scripts with class loaders that actually find them" was not necessary after all and rather caused new regressions, see bug 49517.