[Libreoffice-bugs] [Bug 134248] JURT and JUH JARs contain bad class path declaration

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 24 11:48:45 UTC 2020


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

Stephan Bergmann <sbergman at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noelgrandin at gmail.com,
                   |                            |s.mehrbrodt at gmail.com

--- Comment #4 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Alexander Veit from comment #3)
> > Those entries are necessary so that native code used by those jars can be found.
> 
> The usual way to provide a class path for a JVM instance is that the caller
> specifies the class path to be uses before the JVM is started.
> 
> When JARs try to pull in dependencies on their own they do not play nicely
> together with other libraries the same JVM.

That's not my understanding of how jars are supposed to work, but then again my
understanding of the Java ecosystem is rather rusty and may be of no use here. 
Adding Noel and Samule in cc, maybe they can add something.

> > The LibreOffice jars were never designed to be made available via Maven,
> > outside the context of a LibreOffice installation.
> 
> We use the libraries to utilize LibreOffice/OpenOffice as backend service
> for rendering documents.  I hope that such use cases are also supported by
> the LibreOffice Java API.

The "official" way is to access the jars provided by a LibreOffice installation
via the SDK, see <https://api.libreoffice.org/>.

> > I know that there have been efforts to make them available via Maven,
> > but do not know how effective the results of those efforts were.
> > I personally know next to nothing about Maven.
> 
> The LibreOffice/OpenOffice libraries have been published and regularly
> updated via Maven since 2007:
> 
> https://mvnrepository.com/artifact/org.libreoffice
> https://mvnrepository.com/artifact/org.openoffice

I assume that those have always been provided on an "appears to happen to work
(more or less?)" basis.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200624/339b811b/attachment.htm>


More information about the Libreoffice-bugs mailing list