Page 1 of 1

Open with specific Java version

Posted: 03 Mar 2022, 11:45
by armin
Hello there,

I have multiple jnlp-files that I want to open using OWS.
Unfortunately, they are in different Java-versions.

I have added my own default server to download the JVMs and added the different paths to the JSON-file.
If I write "

Code: Select all

<j2se version="1.11+"/>
" it downloads the latest one of course, in my case the 1.13.
If I only write "

Code: Select all

<j2se version="1.11"/>
" it says that it couldn't find a JVM.
While reading through the log to find out what it is doing, I read the following:
"Trying to find remote Java runtime. Requested version: '1.11*' Requested vendor: '*' requested os: 'WIN64'"
Afterwards it is looking through my json to find a fitting jvm but doesn't find any.

Does anyone know what I should do to be able to run my application on the exact JVM I want to and not the newest one?

Thank you in advance.

armin

Re: Open with specific Java version

Posted: 03 Mar 2022, 12:03
by Janak Mulani
Hi

Why are you specifying j2se version as "1.x"? Why not 11 or 11* or 11+?

Re: Open with specific Java version

Posted: 03 Mar 2022, 12:09
by armin
Hi Janak,

thank you for your fast response.

I wrote it like that because I saw it in an example.
I just tried it the way you wrote it and it worked, I really appreciate it.

Have a nice day and thanks again.

armin