且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将Java应用程序形式从oracle jdk迁移到openjdk?

更新时间:2022-10-14 17:52:19

在Java 8的实现之间进行切换时,无需对代码库进行任何更改.Java由一组规范以及JSR和JEP定义.符合这些规范的任何实现都将运行您的JBoss应用服务器.您现有的 WAR 或EAR文件将按原样运行,而无需进行任何更改.

了解OpenJDK项目提供了Java作为源代码的实现. OpenJDK项目不提供二进制构建或安装程序.对于构建和安装程序,必须找到供应商.您可以选择几种,有些是免费的,有些需要付费.

这是我帮助您选择供应商的流程图.

此图表针对Java 11,但是其中许多供应商也提供Java8.某些产品(例如Azul Systems)甚至将功能移植到Java 8中,例如 Flight Recorder ./p>

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

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.