The problem with AdoptOpenJDK 11 is that it has a: lib/server/libjvm.so instead of the expected: lib/amd64/server/libjvm.so
Patching AOO to search the new path fixes the detection problem. Does OpenJDK 11 / Oracle JDK 11 have the same change in path? Those require a different patch. Regards Damjan On Sat, Jul 27, 2019 at 7:48 PM Damjan Jovanovic <dam...@apache.org> wrote: > AdoptOpenJDK 11 isn't detected. > > I am investigating. > > > > On Sat, Jul 27, 2019 at 7:41 PM Damjan Jovanovic <dam...@apache.org> > wrote: > >> Hi Mechtilde >> >> No idea. I'll try AdoptOpenJDK 11 now. >> >> Regards >> Damjan >> >> >> On Sat, Jul 27, 2019 at 7:22 PM Mechtilde <o...@mechtilde.de> wrote: >> >>> Hello, >>> >>> @ Damjan >>> >>> I see your fix to Issue #128157. >>> >>> Does ist also works with Openjdk 11? >>> >>> Is it possible to extend it to OpenJKD because this is standard in the >>> Linux distributions >>> >>> Kind regards >>> >>> Mechtide >>> >>> Am 10.05.19 um 08:42 schrieb Damjan Jovanovic: >>> > On Fri, May 10, 2019 at 8:35 AM FR web forum <ooofo...@free.fr> wrote: >>> > >>> >> @Larry, >>> >> Strange, the xml has kept many path locations. >>> >> Could you rename this file (quit AOO before)? >>> >> Run AOO that re-create a new javasettings file. >>> >> Go back in Tools > Options > AOO > Java to see if jre 12 is here. >>> >> >>> >>> <jreLocations xsi:nil="false"> >>> >>> >>> >> >>> <location>file:///Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre</location> >>> >>> >>> >> >>> <location>file:///Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre</location> >>> >>> >>> >> >>> <location>file:///Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home</location> >>> >>> >>> >> >>> <location>file:///Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home</location> >>> >>> </jreLocations> >>> >> >>> >> >>> > The only way I solved a Java detection issue before is to step through >>> the >>> > code with a debugger, and carefully check values at every step. >>> > >>> > See commit 1829211 for an example. >>> > >>> > We really need to beef up Java detection urgently, as Oracle has >>> started to >>> > limit its Java to non-commercial use, and people are migrating to >>> > AdoptOpenJDK which we don't detect properly, even for Java 8. >>> > >>> >>> -- >>> Mechtilde Stehmann >>> ## Apache OpenOffice >>> ## Freie Office Suite für Linux, MacOSX, Windows >>> ## Debian Developer >>> ## PGP encryption welcome >>> ## F0E3 7F3D C87A 4998 2899 39E7 F287 7BBA 141A AD7F >>> >>>