Hi, just saw this bug while working on a patch which properly documents the library dependencies (aka "replace libreoffice-java-common in build-depends with explicit libjuh-java, libjurt-java, libridl-java, libunoil-java and add these as explicit Depends/Recommends in addition to libreoffice-java-common)...
On Thu, Jul 09, 2020 at 12:45:21PM +0200, Lucas Nussbaum wrote: [...] > > Get:284 http://127.0.0.1:12990/debian sid/main amd64 liblibreoffice-java > > all 1:7.0.0~rc1-5 [1807 kB] > > Get:285 http://127.0.0.1:12990/debian sid/main amd64 libjuh-java all > > 1:7.0.0~rc1-5 [198 kB] > > Get:286 http://127.0.0.1:12990/debian sid/main amd64 libjurt-java all > > 1:7.0.0~rc1-5 [198 kB] [...] > > Get:297 http://127.0.0.1:12990/debian sid/main amd64 libridl-java all > > 1:7.0.0~rc1-5 [198 kB] > > Get:298 http://127.0.0.1:12990/debian sid/main amd64 libunoil-java all > > 1:7.0.0~rc1-5 [198 kB] > > Get:299 http://127.0.0.1:12990/debian sid/main amd64 > > libreoffice-java-common all 1:7.0.0~rc1-5 [915 kB] [...] All needed libs are installed... > > Replacing org.openoffice:juh:jar:4.1.2 -> > > org.libreoffice:juh:jar:debian > > Replacing org.openoffice:jurt:jar:4.1.2 -> > > org.libreoffice:jurt:jar:debian > > Replacing org.openoffice:ridl:jar:4.1.2 -> > > org.libreoffice:ridl:jar:debian > > Replacing org.openoffice:unoil:jar:4.1.2 -> > > org.libreoffice:unoil:jar:debian So they are found there... > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:13: > > error: package com.sun.star.beans does not exist > > import com.sun.star.beans.PropertyVetoException; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:14: > > error: package com.sun.star.beans does not exist > > import com.sun.star.beans.UnknownPropertyException; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:15: > > error: package com.sun.star.beans does not exist > > import com.sun.star.beans.XPropertySet; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:16: > > error: package com.sun.star.lang does not exist > > import com.sun.star.lang.IllegalArgumentException; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:17: > > error: package com.sun.star.lang does not exist > > import com.sun.star.lang.WrappedTargetException; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:18: > > error: package com.sun.star.text does not exist > > import com.sun.star.text.ControlCharacter; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:19: > > error: package com.sun.star.text does not exist > > import com.sun.star.text.XParagraphCursor; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:20: > > error: package com.sun.star.text does not exist > > import com.sun.star.text.XText; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:21: > > error: package com.sun.star.text does not exist > > import com.sun.star.text.XTextCursor; > > ^ > > /<<PKGBUILDDIR>>/src/main/java/net/sf/jabref/logic/openoffice/OOUtil.java:22: > > error: package com.sun.star.uno does not exist > > import com.sun.star.uno.UnoRuntime; ... but not here anymore. All of thse libs above are now dummy libs for liblibreoffice.jar. They are empty and just contain Class-Path: root@frodo:/usr/share/java# unzip juh.jar Archive: juh.jar creating: META-INF/ inflating: META-INF/MANIFEST.MF root@frodo:/usr/share/java# cat META-INF/MANIFEST.MF Manifest-Version: 1.0 Class-Path: libreoffice.jar Solar-Version: 7.0.0.2 UNO-Type-Path: Created-By: 11.0.7 (Debian) So why does the build not find it? (It might be that the Maven POMs don't specify that variable properly, but should that affect actual compilation? Is Class-Path: used?) [ When I first saw this I wondered whether the "wrong" Class-Path: in juh.jar might have to do with it. But writer2latex built fine with that and 1:7.0.0~rc2-1 (which fixed the Class-Path:) doesn't help here either.] As a workaround one might patch jabref to use libreoffice.jar directly - which is the library to use anyway. (the others are still packaged for compatibility with old packages and third-party stuff which doesn't know about libreoffice.jar...) but... Regards, Rene