Search code examples
javajava-8jboss

How to migrate java application form oracle jdk to openjdk?


we have one java application which is deployed in jboss application server and using java 1.8.0_202 version, now we want to change it to openjdk. how can i change? is there any code changes required? please help me complete steps to be performed?

Thanks in advance..


Solution

  • No changes required to your codebase when switching between implementations of Java 8. Java is defined by a set of specifications along with JSRs and JEPs. Any implementation that complies with those specs will run your JBoss app server. Your existing WAR or EAR file will run as-is with no changes needed.

    Understand that the OpenJDK project provides an implementation of Java as source code. The OpenJDK project does not provide binary builds nor installers. For builds and installers, you must locate a vendor. You have a choice of several, some free-of-cost and some that require a fee.

    Here is a flowchart I made to help you choose a vendor.

    This chart is aimed at Java 11, but many of these vendors also supply Java 8. Some, such as Azul Systems, have even back-ported features to Java 8 such as Flight Recorder.

    Flowchart guiding you in choosing a vendor for a Java 11 implementation