https://bugs.documentfoundation.org/show_bug.cgi?id=149069

            Bug ID: 149069
           Summary: Warning when using libreoffice.jar from Maven,
                    NativeLibraryLoader expects UnoClassLoader
           Product: LibreOffice
           Version: 7.3.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

We use libreoffice.jar from Maven to connect to a running (local or remote)
LibreOffice instance. Since version 7.3.0, this results in a
NoClassDefFoundError when calling UnoUrlResolver#resolve. We identified
https://cgit.freedesktop.org/libreoffice/core/commit/?id=97b61ea3297e04e64aab1e1a4ec50202e9f86fff
as the source of this problem. The class
com.sun.star.lib.unoloader.UnoClassLoader can't be found in libreoffice.jar,
but instead in unoloader.jar.

When unoloader.jar is added as an additional dependency (which wasn't needed
prior to 7.3.0), the connection works as expected. But the check implemented in
the commit above fails, resulting in a warning being printed to stderr:

warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)

As far as I understand, using UnoClassLoader isn't required for this use case,
and it shouldn't be called directly from client code anyway. Therefore I'd
expect no warning to be printed in this situation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to