Java 12 not recognized by AOO

classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Java 12 not recognized by AOO

Larry Gusaas-4
I just installed jdk-12.jdk on my computer. Went to AOO preferences to set Java preferences.

OpenOffice did not find any JRE. AOO was previously set to use jdk-11.0.2.jdk which is still
installed on my computer.

Tried to add jdk-12.jdk but get the message "The Java runtime environment you selected is not
the required version."

Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0

Was able to add jdk-11.0.2.jdk back to the list of installed Java.


--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Mechtilde Stehmann-2
Hello Larry,

how did you do it with Java-11. Can you describe the whole Java-Path I
have to choose in the AOO preferences?

Kind regards

Mechtilde

Am 25.03.19 um 00:49 schrieb Larry Gusaas:

> I just installed jdk-12.jdk on my computer. Went to AOO preferences to
> set Java preferences.
>
> OpenOffice did not find any JRE. AOO was previously set to use
> jdk-11.0.2.jdk which is still installed on my computer.
>
> Tried to add jdk-12.jdk but get the message "The Java runtime
> environment you selected is not the required version."
>
> Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0
>
> Was able to add jdk-11.0.2.jdk back to the list of installed Java.
>
>
--
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


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Larry Gusaas-4
I used "Add" on the Java options page in Preferences.

The location on my Mac is:

Macintosh HD/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home

On 2019-03-25 12:06 a.m., Mechtilde wrote:

> Hello Larry,
>
> how did you do it with Java-11. Can you describe the whole Java-Path I
> have to choose in the AOO preferences?
>
> Kind regards
>
> Mechtilde
>
> Am 25.03.19 um 00:49 schrieb Larry Gusaas:
>> I just installed jdk-12.jdk on my computer. Went to AOO preferences to
>> set Java preferences.
>>
>> OpenOffice did not find any JRE. AOO was previously set to use
>> jdk-11.0.2.jdk which is still installed on my computer.
>>
>> Tried to add jdk-12.jdk but get the message "The Java runtime
>> environment you selected is not the required version."
>>
>> Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0
>>
>> Was able to add jdk-11.0.2.jdk back to the list of installed Java.
>>
>>


--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Larry Gusaas-4
In reply to this post by Larry Gusaas-4
Just installed jdk-12.0.1.jdk

It is recognized and works on both AOO 4.1.6 and AOO Developer Build 4.2.0


On 2019-03-24 5:49 p.m., Larry Gusaas wrote:

> I just installed jdk-12.jdk on my computer. Went to AOO preferences to set Java preferences.
>
> OpenOffice did not find any JRE. AOO was previously set to use jdk-11.0.2.jdk which is still
> installed on my computer.
>
> Tried to add jdk-12.jdk but get the message "The Java runtime environment you selected is not
> the required version."
>
> Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0
>
> Was able to add jdk-11.0.2.jdk back to the list of installed Java.
>
>


--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Peter Kovacs-3
Windows operating system?

Am 8. Mai 2019 03:36:16 MESZ schrieb Larry Gusaas <[hidden email]>:

>Just installed jdk-12.0.1.jdk
>
>It is recognized and works on both AOO 4.1.6 and AOO Developer Build
>4.2.0
>
>
>On 2019-03-24 5:49 p.m., Larry Gusaas wrote:
>> I just installed jdk-12.jdk on my computer. Went to AOO preferences
>to set Java preferences.
>>
>> OpenOffice did not find any JRE. AOO was previously set to use
>jdk-11.0.2.jdk which is still
>> installed on my computer.
>>
>> Tried to add jdk-12.jdk but get the message "The Java runtime
>environment you selected is not
>> the required version."
>>
>> Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0
>>
>> Was able to add jdk-11.0.2.jdk back to the list of installed Java.
>>
>>
>
>
>--
>_________________________________
>
>Larry I. Gusaas
>Moose Jaw, Saskatchewan Canada
>Website: http://larry-gusaas.com
>
>"An artist is never ahead of his time but most people are far behind
>theirs." - Edgard Varese
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Mechtilde Stehmann-2
In reply to this post by Larry Gusaas-4
Hello Larry,


Am 08.05.19 um 03:36 schrieb Larry Gusaas:
> Just installed jdk-12.0.1.jdk
>
> It is recognized and works on both AOO 4.1.6 and AOO Developer Build 4.2.0

Can you post the path, where AOO can find JavaRE in the AOO preferences.
Java 11 has logterm supoort for Linux. So e.g under Debian only Java 11
is available.

> On 2019-03-24 5:49 p.m., Larry Gusaas wrote:
>> I just installed jdk-12.jdk on my computer. Went to AOO preferences to
>> set Java preferences.
>>
>> OpenOffice did not find any JRE. AOO was previously set to use
>> jdk-11.0.2.jdk which is still installed on my computer.
>>
>> Tried to add jdk-12.jdk but get the message "The Java runtime
>> environment you selected is not the required version."
>>
>> Get the same result using AOO 4.1.6 and AOO Developer Build 4.2.0
>>
>> Was able to add jdk-11.0.2.jdk back to the list of installed Java.
Kind regards

--
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


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Larry Gusaas-4
On 2019-05-08 2:25 a.m., Mechtilde wrote:

> Hello Larry,
>
>
> Am 08.05.19 um 03:36 schrieb Larry Gusaas:
>> Just installed jdk-12.0.1.jdk
>>
>> It is recognized and works on both AOO 4.1.6 and AOO Developer Build 4.2.0
> Can you post the path, where AOO can find JavaRE in the AOO preferences.
> Java 11 has logterm supoort for Linux. So e.g under Debian only Java 11
> is available.


The location on my Mac is:

Macintosh HD/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home



--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

FR web forum
> The location on my Mac is:
> HD/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home

Java parameters are read by AOO in javasettings_MacOSX_X86_64.xml
Location in:
HD > Library > Application Support > OpenOffice > 4 > User > config
Could you post the content of this file?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

FR web forum
Well, I have a similar issue with LUbuntu 18.10
The default JRE is openjdk-11-jre
Once installed, this is not recognized by AOO too.
javasettings_Linux_x86.xml is not updated.
If I choose openjdk-8-jre, all is fine.
AOO in Tools > Options > Java displays Oracle Corp. v.18.0_191

----- Mail original -----

> De: "FR web forum" <[hidden email]>
> À: [hidden email]
> Envoyé: Jeudi 9 Mai 2019 09:13:38
> Objet: Re: Java 12 not recognized by AOO
>
> > The location on my Mac is:
> > HD/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
>
> Java parameters are read by AOO in javasettings_MacOSX_X86_64.xml
> Location in:
> HD > Library > Application Support > OpenOffice > 4 > User > config
> Could you post the content of this file?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Larry Gusaas-4
In reply to this post by FR web forum
On 2019-05-09 1:13 a.m., FR web forum wrote:
>> The location on my Mac is:
>> HD/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
> Java parameters are read by AOO in javasettings_MacOSX_X86_64.xml
> Location in:
> HD > Library > Application Support > OpenOffice > 4 > User > config
> Could you post the content of this file?

HD > (user name) > Library > Application Support > OpenOffice > 4 > User > config

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="false">true</enabled>
<userClassPath xsi:nil="true"/>
<vmParameters xsi:nil="false"/>
<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>
<javaInfo xsi:nil="false" vendorUpdate="2013-01-01" autoSelect="false">
<vendor>Oracle Corporation</vendor>
<location>file:///Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home</location>
<version>12.0.1</version>
<features>0</features>
<requirements>1</requirements>
<vendorData>660069006C0065003A002F002F002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F007300650072007600650072002F006C00690062006A0076006D002E00640079006C00690062000A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F0063006C00690065006E0074003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F006E00610074006900760065005F0074006800720065006100640073003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034000A00</vendorData>
</javaInfo>
</java>


--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Josef Latt-3
Hi,

locations in Ubuntu 19.04, where java 11 is marked as supported:

/usr/lib/jvm/java-8-openjdk-amd64/jre
/usr/lib/jvm/java-11-openjdk-amd64

In java 11 there is no folder .../jre.
For me, it seems that the path to java is hard coded.

Regards
Josef

Am 09.05.19 um 19:42 schrieb Larry Gusaas:

> On 2019-05-09 1:13 a.m., FR web forum wrote:
>>> The location on my Mac is:
>>> HD/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
>> Java parameters are read by AOO in javasettings_MacOSX_X86_64.xml
>> Location in:
>> HD > Library > Application Support > OpenOffice > 4 > User > config
>> Could you post the content of this file?
>
> HD > (user name) > Library > Application Support > OpenOffice > 4 > User
>> config
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--This is a generated file. Do not alter this file!-->
> <java xmlns="http://openoffice.org/2004/java/framework/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <enabled xsi:nil="false">true</enabled>
> <userClassPath xsi:nil="true"/>
> <vmParameters xsi:nil="false"/>
> <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>
> <javaInfo xsi:nil="false" vendorUpdate="2013-01-01" autoSelect="false">
> <vendor>Oracle Corporation</vendor>
> <location>file:///Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home</location>
>
> <version>12.0.1</version>
> <features>0</features>
> <requirements>1</requirements>
> <vendorData>660069006C0065003A002F002F002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F007300650072007600650072002F006C00690062006A0076006D002E00640079006C00690062000A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F0063006C00690065006E0074003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F006E00610074006900760065005F0074006800720065006100640073003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034000A00</vendorData>
>
> </javaInfo>
> </java>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

FR web forum
In reply to this post by Larry Gusaas-4
@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>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Damjan Jovanovic
On Fri, May 10, 2019 at 8:35 AM FR web forum <[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Larry Gusaas-4
In reply to this post by FR web forum
On 2019-05-10 12:34 a.m., FR web forum wrote:
> @Larry,
> Strange, the xml has kept many path locations.
They are previously installed versions of Java that have been uninstalled.
> 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.

Did that. jre 12 is there. The new xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="true"/>
<userClassPath xsi:nil="true"/>
<vmParameters xsi:nil="true"/>
<jreLocations xsi:nil="true"/>
<javaInfo xsi:nil="false" vendorUpdate="2013-01-01" autoSelect="false">
<vendor>Oracle Corporation</vendor>
<location>file:///Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home</location>
<version>12.0.1</version>
<features>0</features>
<requirements>1</requirements>
<vendorData>660069006C0065003A002F002F002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F007300650072007600650072002F006C00690062006A0076006D002E00640079006C00690062000A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F0063006C00690065006E0074003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034002F006E00610074006900760065005F0074006800720065006100640073003A002F004C006900620072006100720079002F004A006100760061002F004A006100760061005600690072007400750061006C004D0061006300680069006E00650073002F006A0064006B002D00310032002E0030002E0031002E006A0064006B002F0043006F006E00740065006E00740073002F0048006F006D0065002F006C00690062002F0061006D006400360034000A00</vendorData>
</javaInfo>
</java>



--
_________________________________

Larry I. Gusaas
Moose Jaw, Saskatchewan Canada
Website: http://larry-gusaas.com

"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

FR web forum
In reply to this post by Damjan Jovanovic
> 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.
Seems to be fixed in LibO:
https://bugs.documentfoundation.org/show_bug.cgi?id=124503


> 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.
+1


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Matthias Seidel
In reply to this post by Damjan Jovanovic
Hi Damjan,

Am 10.05.19 um 08:42 schrieb Damjan Jovanovic:

> On Fri, May 10, 2019 at 8:35 AM FR web forum <[hidden email]> 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.
+1

Personally I tried OpenJDK [1] on Windows because they also offer a
32-bit version for Java 8. But it isn't detected in AOO.

Regards,

   Matthias

[1] https://github.com/ojdkbuild/ojdkbuild

>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Mechtilde Stehmann-2
In reply to this post by Damjan Jovanovic
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 <[hidden email]> 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


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Damjan Jovanovic
Hi Mechtilde

No idea. I'll try AdoptOpenJDK 11 now.

Regards
Damjan


On Sat, Jul 27, 2019 at 7:22 PM Mechtilde <[hidden email]> 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 <[hidden email]> 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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Damjan Jovanovic
AdoptOpenJDK 11 isn't detected.

I am investigating.



On Sat, Jul 27, 2019 at 7:41 PM Damjan Jovanovic <[hidden email]> wrote:

> Hi Mechtilde
>
> No idea. I'll try AdoptOpenJDK 11 now.
>
> Regards
> Damjan
>
>
> On Sat, Jul 27, 2019 at 7:22 PM Mechtilde <[hidden email]> 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 <[hidden email]> 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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Java 12 not recognized by AOO

Damjan Jovanovic
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 <[hidden email]> wrote:

> AdoptOpenJDK 11 isn't detected.
>
> I am investigating.
>
>
>
> On Sat, Jul 27, 2019 at 7:41 PM Damjan Jovanovic <[hidden email]>
> wrote:
>
>> Hi Mechtilde
>>
>> No idea. I'll try AdoptOpenJDK 11 now.
>>
>> Regards
>> Damjan
>>
>>
>> On Sat, Jul 27, 2019 at 7:22 PM Mechtilde <[hidden email]> 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 <[hidden email]> 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
>>>
>>>
12