简体   繁体   English

用于生产和 LTS 的 OpenJDK?

[英]OpenJDK for production and LTS?

My understanding from "Do you have to pay to use Java?"我对“使用 Java 需要付费吗?”的理解of Java programming language Free is that I can go for OpenJDK(version 11) build provided I don't need LTS as both OpenJDK and commercial version are identical in terms of features. Java 编程语言 Free的优点是我可以使用 OpenJDK(版本 11)构建,前提是我不需要 LTS,因为 OpenJDK 和商业版本在功能方面是相同的。 If I need to purchase LTS(Long term support) either I have to purchase support for OpenJDK or upgrade to same version of "commercial Oracle JDK build".如果我需要购买 LTS(长期支持),我必须购买 OpenJDK 支持或升级到相同版本的“商业 Oracle JDK 构建”。 Is that correct ?那是对的吗 ?

Another question is why I need LTS ?另一个问题是为什么我需要 LTS ? I think if we don't take LTS then any we don't get any support/patch for defects( or security patch).我认为如果我们不采用 LTS,那么我们就不会获得任何缺陷支持/补丁(或安全补丁)。 Right ?对 ?

I wrote a blog article discussing that topic in early 2019 .在 2019 年初写了一篇讨论该主题博客文章

First, as far as I know, the OpenJDK team does not offer any premium support.首先,据我所知,OpenJDK 团队不提供任何高级支持。

Second, normally one goes to the LTS for longterm support, mainly security updates.其次,通常会向 LTS 寻求长期支持,主要是安全更新。

Third, Oracle will only hand over the code for the LTS version to the OpenJDK team and only after the LTS has reached its end of life .第三, Oracle 只会将 LTS 版本的代码移交给 OpenJDK 团队,并且只有在 LTS 生命周期结束后 This means that the OpenJDK community has to keep up with changes on their own.这意味着 OpenJDK 社区必须自己跟上变化。

Now to the topic on the JDKs being identical.现在关于 JDK 的主题是相同的。 They both pass the JCK and thus can be used as drop-in replacement for each other.它们都通过了JCK ,因此可以用作彼此的直接替代品。 The implementations, however, may vary.然而,实现可能会有所不同。

There is a host of JDK providers, all with different support plans.有许多 JDK 提供商,它们都有不同的支持计划。 Fact of the matter is, there is no free lunch .事实是,天下没有免费的午餐 If one wants support, one has to pay.如果需要支持,则必须付费。

A remark on your post: Please limit yourself to one question per post对您的帖子的评论:请限制每个帖子一个问题

OpenJDK is is a free and open-source implementation of the Java Platform. OpenJDK是 Java 平台的免费开源实现。 The implementation is licensed under the GNU General Public License.该实现是在 GNU 通用公共许可证下许可的。 You are free to use at any environment.您可以在任何环境下自由使用。 But you won't get any kind of support from the Oracle and you've to rely on open communities support, later can be best than the OEM support some times.但是您不会从 Oracle 获得任何类型的支持,您必须依赖开放社区的支持,有时有时比 OEM 支持更好。

LTS is a product life cycle management policy in which a stable release of software is maintained for a longer period of time than the standard edition. LTS是一种产品生命周期管理策略,其中稳定版本的软件比标准版本的维护时间更长。 You get security updates for some good number of years.您会获得多年的安全更新。

Do you have to pay to use Java?使用 Java 需要付费吗?

Answer is yes, Iff you use Oracle JDK for business, commercial, or production purposes.答案是肯定的,如果您将 Oracle JDK 用于商业、商业或生产目的。

Answer is No, if you use OpenJDK irrespective purpose or environment.答案是否定的,如果您使用 OpenJDK,无论目的或环境如何。

PS : this is all about licensing and it can change over a period of time. PS :这都是关于许可的,它可以在一段时间内改变。

LTS is supported for 3 years and will receive updates until it expires. LTS 的支持期为 3 年,并且会在到期之前收到更新。 When you use openjdk you need not pay for support or patches.当您使用 openjdk 时,您无需为支持或补丁付费。 I always go with LTS like java 11.我总是使用像 Java 11 这样的 LTS。

The non-LTS version will have newer features but they are short lived like 6 months.非 LTS 版本将具有更新的功能,但它们的寿命很短,如 6 个月。 They don't receive updates for long rather it is expected to upgrade to next version.他们不会长时间收到更新,而是预计会升级到下一个版本。 Security patches are available on same version or next version.安全补丁可用于同一版本或下一版本。

If you don't have a special usecase then open jdk is more than enough如果你没有特殊的用例,那么打开 jdk 就足够了

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

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