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
Applications with Java 8 and Java 17
-
- Posts: 971
- Joined: 24 Mar 2020, 13:37
Re: Applications with Java 8 and Java 17
Can you please post the line from both Jnlp that specifies JRE to be used?
For example:
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).
For example:
Code: Select all
<java version="1.8+" java-vm-args=" -Xmx512m -Xms128m "/>
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).
Re: Applications with Java 8 and Java 17
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.
<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.
-
- Posts: 971
- Joined: 24 Mar 2020, 13:37
Re: Applications with Java 8 and Java 17
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.
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.
Re: Applications with Java 8 and Java 17
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.
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.
-
- Posts: 971
- Joined: 24 Mar 2020, 13:37
Re: Applications with Java 8 and Java 17
"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).
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).
Re: Applications with Java 8 and Java 17
ah - ok, now i understand - thanks for your detailed information.