如何将Java应用程序形式从oracle jdk迁移到openjdk? [英] How to migrate java application form oracle jdk to openjdk?

查看:389
本文介绍了如何将Java应用程序形式从oracle jdk迁移到openjdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Java应用程序,它部署在jboss应用服务器中并使用Java 1.8.0_202版本,现在我们想将其更改为openjdk. 我该如何改变? 是否需要任何代码更改? 请帮助我完成要执行的步骤?

先谢谢了.

解决方案

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

这篇关于如何将Java应用程序形式从oracle jdk迁移到openjdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆