Detection of local JVM only finds the Oracle Java

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Detection of local JVM only finds the Oracle Java

Post by Paul Gellissen »

Hi,

I would like to know how OWS searches and detects the locally installed JVM.
This is due to the problem that an installation of jre-8.0.242.08-hotspot from AdoptOpenJDK never gets found.
But when I define the installation path manually the installation gets found.

Paul

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Detection of local JVM only finds the Oracle Java

Post by Janak Mulani »

Hi,

On which Operating System are you running the OWS Settings tool to look for local JVMs?

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Detection of local JVM only finds the Oracle Java

Post by Stephan Classen »

we basically search the most common path. If you tell us where adopt is installed we can take this path into the list for the next release

Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Re: Detection of local JVM only finds the Oracle Java

Post by Paul Gellissen »

Hi,

with the settings left on standard it gets installed to C:\Program Files\AdoptOpenJDK
At least when I scan with this folder the JVM gets found.
It was tested on Win10 1909x64.

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Detection of local JVM only finds the Oracle Java

Post by Janak Mulani »

On Windows OWS searches in :
1. "Program Files (X86)\java" and "Program Files\java\"
2. <Cygwin/Home>/.sdkman
3. "Program Files (X86)\Amazon Corretto" and "Program Files\Amazon Corretto\"

In a future release we can add to the search path Program Files\AdoptOpenJDK and Program Files (x86)\AdoptOpenJDK if as you say it is the default.

Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Re: Detection of local JVM only finds the Oracle Java

Post by Paul Gellissen »

Thanks for your help. Can you tell when the update will be released?

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Detection of local JVM only finds the Oracle Java

Post by Stephan Classen »

We plan on releasing the next version end of July beginning of August.

vijayasri.t
Posts: 13
Joined: 27 Jul 2020, 12:48

Re: Detection of local JVM only finds the Oracle Java

Post by vijayasri.t »

Hello,

Hope this is an appropriate thread to report this topic. I have AdoptOpenJDK 8 runtime and OpenWebStart installed on both Windows 10 and macOS Catalina at their default install locations. Locally installed JVMs do not get detected by OpenWebStart automatically; Why so? I need to explicitly click Find Local to do get them configured. Why isn’t this a default behaviour without user requiring to do an additional step to detect JVMs?

Thanks,
Vijayasri

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Detection of local JVM only finds the Oracle Java

Post by Stephan Classen »

Hi Vijayasri
We explicitly designed it this way because many of our customers provide a JVM download server which offers specific Java versions for their applications.
If OWS would automatically detect and use any locally installed JVM then such a JVM may take precedence over the one from the download server.

vijayasri.t
Posts: 13
Joined: 27 Jul 2020, 12:48

Re: Detection of local JVM only finds the Oracle Java

Post by vijayasri.t »

Thanks! This info helps.

Post Reply