Applications with Java 8 and Java 17

Get help with installation and configuration of OWS. Please post specific bug reports, pull requests, or source code extensions on github.
Bogo
Posts: 4
Joined: 18 Mar 2025, 14:11

Applications with Java 8 and Java 17

Post by Bogo »

We are launching two different external applications with Openwebstart version 1.11.1. The first application requires Java 8, which is installed locally. The second one requires Java 17 and download this version before starting the application. After downloading Java 17 for the second application, the first application also tries to start with Java 17, although the JNLP file explicitly says Java 8. When we remove Java 17 from the cache, the first application with java 8 comes up again. Is there a configuration option in openwebstart for this so that both applications can run in parallel?

Thanks,

Bogo

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

Re: Applications with Java 8 and Java 17

Post by Janak Mulani »

Can you please post the line from both Jnlp that specifies JRE to be used?

For example:

Code: Select all

<java version="1.8+"  java-vm-args=" -Xmx512m -Xms128m "/>
The version number specified can either end with a number, and asterisk or a plus sign.

1.8 would mean the version must be 1.8.
1.8* means anything at or higher than 1.8 but less than 9 (like 1.8.x).
1.8+ means anything 1.8 or higher (such as 11, 17, 21).

Bogo
Posts: 4
Joined: 18 Mar 2025, 14:11

Re: Applications with Java 8 and Java 17

Post by Bogo »

The Java 8 jnlp file:

<j2se version="1.8.0+" initial-heap-size="256m" max-heap-size="1024m" href="http://java.sun.com/products/autodl/j2se"/>

and the Java 17 jnlp file:

<java version="17.42.19" vendor="OpenJdk by XXXXXX" href="https://xxxx.xx.xxxxx.com/clientjdk/jvms.json" java-vm-args="-Xms128m -Xmx544m -XX:NewRatio=30" />


Anyway - when i change the java 8 jnlp File from 1.8+ to 1.8 or 1.8* the app tries to start with Java 17.

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

Re: Applications with Java 8 and Java 17

Post by Janak Mulani »

Which JVMs are shown active in itw-settings > JVM Manager? Does it list JVM 8 and JVM 17?

What is your itw-settings > JVM Manager > Update Strategy ?

You are saying that even if you specify 1.8 or 1.8* it is still using Java 17. Where did you make this change, in the down loaded Jnlp or in the Jnlp which is on server? If your Jnlp has href then OWS will always download the Jnlp from the server. Therefore you need to make the change in the Jnlp on server.

Bogo
Posts: 4
Joined: 18 Mar 2025, 14:11

Re: Applications with Java 8 and Java 17

Post by Bogo »

Both JVM's are shown active in the JVM-Manager (JVM 8 and JVM 17).
The update straegy is to ask before download an new jvm.
The original downloaded java 8 jnlp file has href and <j2se version="1.8.0+ - so normally the application should come up with the local installed Java8 - but OWS tries to start it with Java 17.

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

Re: Applications with Java 8 and Java 17

Post by Janak Mulani »

"The original downloaded java 8 jnlp file has href and <j2se version="1.8.0+ -" => This will mean OWS will choose a version > v1.8 i.e. v17 in your case.

1.8 would mean the version must be 1.8.
1.8* means anything at or higher than 1.8 but less than 9 (like 1.8.x).
1.8+ means anything 1.8 or higher (such as 11, 17, 21).

Bogo
Posts: 4
Joined: 18 Mar 2025, 14:11

Re: Applications with Java 8 and Java 17

Post by Bogo »

ah - ok, now i understand - thanks for your detailed information.

Post Reply