0

I am working on migrating my java application from Oracle JDK to adoptOpenJdk.So what changes would be required to migrate to AdoptOpenJdk.

5
  • 2
    Ever heard of write once, run anywhere? Commented Feb 5, 2020 at 7:23
  • I can't think of any reason you'd need to make ANY changes to your application. Commented Feb 5, 2020 at 7:25
  • But i have been asked to explore what changes would be required for migration. Commented Feb 5, 2020 at 7:28
  • Im afraid you will have to use the OpenJDK and see if all the libs/jars you are using are supported in the new OpenJDK. if not you will need to look for the equivalent Commented Feb 5, 2020 at 7:44
  • Can you please tell me what are the major diffrences between oracle jdk and AdoptOpenJdk? Commented Feb 5, 2020 at 7:55

1 Answer 1

2

Feature parity

Oracle has committed to keeping their Oracle JDK product at feature parity with the codebase in the OpenJDK project. So any Java app running on Oracle JDK should run on any other platform built faithfully from the OpenJDK codebase. You need not make any changes to your Java programming.

Be aware that OpenJDK only provides source code. For binaries and installers, you must look elsewhere. Several companies provide such binaries and installers. One of those is a joint venture known as AdoptOpenJDK. Others include Azul Systems, Red Hat/IBM, SAP, BellSoft, Amazon, Oracle, and Pivotal.

Most of the vendors, including Oracle, provide JVMs using the HotSpot optimizing compiler and runtime. AdoptOpenJDK (at least) offers you a choice to obtain a build using the OpenJ9 optimizing runtime instead. Your Java app should run well on either HotSpot or OpenJ9, but you may see a different performance profile.

See my Answer to a similar Question.

Be aware that the current licensing terms for the Oracle JDK product require that for use in production you must pay a fee. That product is free-of-cost only for non-production use such as development and testing. If you do not want to pay such a fee to Oracle, use their unsupported product at JDK.java.net, or use a JVM provided by one of the other vendors as shown in this flowchart.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.