Java 17

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
DaveRadtke
Posts: 3
Joined: 27 Sep 2022, 00:09

Java 17

Post 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?

Andreas Ehret
Posts: 81
Joined: 25 Mar 2020, 12:21

Re: Java 17

Post 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?

DaveRadtke
Posts: 3
Joined: 27 Sep 2022, 00:09

Re: Java 17

Post 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.

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

Re: Java 17

Post 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.

DaveRadtke
Posts: 3
Joined: 27 Sep 2022, 00:09

Re: Java 17

Post by DaveRadtke »

Is there a plan to add Java17 to the recommended JVM list?

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

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

Re: Java 17

Post 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

MorLin
Posts: 1
Joined: 14 Nov 2022, 15:39

Re: Java 17

Post 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.

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

Re: Java 17

Post 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.

Post Reply