getdown icon indicating copy to clipboard operation
getdown copied to clipboard

Is there a way to distinguish Open JDK from Oracle JDK when using the Custom JVM option?

Open Halahala1993 opened this issue 5 years ago • 6 comments

In our testing we noticed we can't force Getdown to download Oracle JDK 11 if we use Open JDK 11 to initially launch Getdown. It can't differentiate the versions or build numbers between them.

Is there a configuration that could workaround this issue?

Halahala1993 avatar Oct 09 '18 19:10 Halahala1993

They aren't meant to be differentiated. They have feature parity, and OpenJDK is the reference implementation.

zilti avatar Oct 09 '18 20:10 zilti

For our use case: on the server side we'd have the Oracle JDK ready to download while OpenJDK is only used to launch Getdown. We want our application to only be launched using an Oracle JDK and to never be launched with OpenJDK

Halahala1993 avatar Oct 09 '18 21:10 Halahala1993

This isn't helping with your question, but: when your application only works with one of the two, you should fire your developer.

zilti avatar Oct 09 '18 21:10 zilti

You misunderstand. It's not a constraint on our application we know it'll work on both regardless.

I'm asking this for the sole purpose of having an answer for customers who only want to run our application on Oracle's JDK.

Halahala1993 avatar Oct 12 '18 15:10 Halahala1993

As a side note: As far as I know there is also no guarantee for different JDK implementations to be compatible in regards to serialization. Today it may be frowned upon, but quite a lot of legacy applications that try to migrate away from Webstart still use ArrayList and other data structures in an RMI-styled manner to communicate between client and server. So, this may be a valid use case to force a specific JDK implementation on the client.

ChristianCiach avatar Oct 29 '18 10:10 ChristianCiach

@zilti you're wrong when saying "they aren't meant to be differentiated". eg openjdk-8-jre does not include openjfx (JavaFX) on Linux however Oracle JRE does include JavaFX on each platform

sergiorussia avatar May 09 '19 20:05 sergiorussia