Page 1 of 1

Java 17

Posted: 28 Sep 2022, 00:07
by DaveRadtke
We have an application built using Java 1.8, but is currently running on Java 11 via OWS

We are in the process of migrating this to be Compiled using Java 17 (and upgrading all of our dependant frameworks)

Are there any know issues with this?

We have found that Java's BasicService class was removed in Java11, we use this to access the codebase value from the JNLP
I'm assuming that OWS is providing this via openwebstart.jar

My plan is to create a wrapper class in a separate project that is compiled using Java 1.8, and then only use the wrapper in our Java17 project.
Will this work?
Is there a better solution to access the URL?

Re: Java 17

Posted: 28 Sep 2022, 07:06
by Andreas Ehret
When I look into the code of OpenWebStart, I can see an implementation of BasicService.getCodeBase() (net.sourceforge.jnlp.services.XBasicService#getCodeBase, in the IcedTea-Web Part), so it looks to me that your required functionality is around. Did you gave it a try?

Re: Java 17

Posted: 29 Sep 2022, 00:20
by DaveRadtke
It will be a while till we get everything into a runnable state because we are also migrating our frameworks (hibernate) and we have heaps of compilation issues. Once that's resolved we need to sign our jars and noble together a deployment for proper full testing.

I would love to know if there are any know issues with Java17 that will stop this from working before we spend all this time.

Re: Java 17

Posted: 04 Oct 2022, 11:38
by Janak Mulani
As far as OWS is concerned so far we have no reports of any issues of Apps started by OWS using Java 17.

Re: Java 17

Posted: 11 Oct 2022, 00:30
by DaveRadtke
Is there a plan to add Java17 to the recommended JVM list?

https://download-openwebstart.com/jvms.json

Re: Java 17

Posted: 18 Oct 2022, 08:50
by Janak Mulani
We may consider this in the next release (sometime in November). However, you can also setup your own JVM Download Server that hosts Java17 JRE as described in guide https://openwebstart.com/docs/OWSGuide. ... oad_server

Re: Java 17

Posted: 25 Nov 2022, 09:44
by MorLin
Any news about adding Java 17 to the recommended JVM list?

We are waiting for it, so that we can move forward from Java 8 to Java 17 and skip Java 11 on the way.

Re: Java 17

Posted: 25 Nov 2022, 10:53
by Janak Mulani
Yes we will add Java 17 links to the JVM JSON it.
We are likely to make a new release of OWS next week.