简体   繁体   English

从Oracle JDK迁移到OpenJDK所需的更改

[英]Changes required to migrate from Oracle JDK to OpenJDK

We are planning to migrate our project from Oracle JDK to OpenJDK. 我们计划将项目从Oracle JDK迁移到OpenJDK。 I have some questions regarding the same. 我对此有一些疑问。

  • After doing some analysis I found that OpenJDK will have a feature release every 6 months which is only supported until the next feature release.It's essentially a continuous stream of releases targeted to developers. 在做了一些分析之后,我发现OpenJDK will have a feature release every 6 months which is only supported until the next feature release.It's essentially a continuous stream of releases targeted to developers. Now my question is will it be a good idea to migrate to OpenJDK. 现在我的问题是迁移到OpenJDK是个好主意。 Because if the above statement is correct then we need to upgrade OpenJDK in our application every 6 months 因为如果上述陈述是正确的,那么我们需要每6个月在我们的应用程序中升级OpenJDK

    Ref : Differences between Oracle JDK and OpenJDK 参考: Oracle JDK和OpenJDK之间的差异

  • What are the basic changes required to do this migration. 执行此迁移所需的基本更改是什么。 When I say basic changes, I mean I need to understand in very high level.One thing I know that is Oracle JDK and Open JDK are having different jar licences. 当我说基本的变化时,我的意思是我需要在非常高的层次上理解。我知道的一件事是Oracle JDK和Open JDK有不同的jar许可证。 So do I need to replace all Oracle JDK jars with OpenJDK jars as its mentioned in Migrating to OpenJDK from Oracle JDK ? 那么我是否需要用从Oracle JDK迁移到OpenJDK中提到的OpenJDK jar替换所有Oracle JDK jar?

Currently we are using : 目前我们正在使用:

  • JDK 1.8 JDK 1.8
  • Tomcat 8 雄猫8
  • Windows Operating System for development. 用于开发的Windows操作系统。 Services gets deployed in linux OS 服务部署在Linux OS中
  • Maven Build tool Maven构建工具

Appreciate your help. 感谢您的帮助。

Thanks 谢谢

Now my question is will it be a good idea to migrate to OpenJDK 现在我的问题是迁移到OpenJDK是个好主意

For Java 11 you might want to, though by Java 11 they will be almost identical. 对于Java 11,您可能希望,尽管通过Java 11它们几乎完全相同。

So do I need to replace all Oracle JDK jars with OpenJDK jars 所以我需要用OpenJDK jar替换所有Oracle JDK jar

I would install a version of OpenJDK and use the JARs which came with it. 我会安装一个OpenJDK版本并使用随附的JAR。 I wouldn't mix and match them. 我不会混淆和匹配它们。

JDK 1.8 JDK 1.8

I am not sure gain anything by migrating Java 8. Oracle Java 8 is still supported at least until Jan 2019. After that, you might not get any update, but you might not with OpenJDK either. 我不确定通过迁移Java 8获得任何收益。至少在2019年1月之前,Oracle Java 8仍然受支持。之后,您可能无法获得任何更新,但您可能也不会使用OpenJDK。

If your concern is getting support for Java 8, I suggest contacting a company which will give commercial support Java 8 such as Azul for what seemed like a reasonable price. 如果您的关注点是获得对Java 8的支持,我建议您联系一家提供商业支持Java 8的公司,例如Azul,这似乎是一个合理的价格。 https://www.azul.com/downloads/zulu/zulu-windows/ https://www.azul.com/downloads/zulu/zulu-windows/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM