从技术上讲,Oracle JDK和OpenJDK之间的主要区别是什么? [英] Technically what is the main difference between Oracle JDK and OpenJDK?

查看:873
本文介绍了从技术上讲,Oracle JDK和OpenJDK之间的主要区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用OpenJDK,最初用于没有问题的小项目。但是自从我开始玩大玩具之后,我开始注意到随机/未知的致命错误和崩溃(使用H.264编解码器等),直到那时才遇到系统崩溃和致命错误的噩梦造成OpenJDK的。

I have been using OpenJDK for ages, initially for small projects where it has no problems. But since I started to play with it for big toys, I started to notice random/unknown fatal error and crashes (with H.264 codecs, etc.), and it was a nightmare till then to get ride of system crash+fatal errors caused by OpenJDK.

获得完全沮丧和疲惫与OpenJDK的之后,我终于决定切换到Oracle JDK 7,从那时起我的致命错误/崩溃都不见了。我仍在追踪它是否发生,但我还没有遇到过这些系统崩溃。

After getting completely frustrated and tired with OpenJDK, I finally decided to switch into Oracle JDK 7. Since then my fatal errors/crashes were gone. I am still doing trace to see if it occurs, but I never got those system crashes yet.

现在我想知道,如果OpenJDK只是一个许可证问题,为什么呢?它的稳定性是不可能的?

Now I am wondering, if OpenJDK is only a license issue, why is stability impossible with it?

为什么OpenJDK在其稳定版本中保持bug存活,但声称它是Oracle JDK的克隆(它不是真的),那么真的在技术上将OpenJDK与Oracle JDK分开? (只有快速功能可用性?或专注于稳定性/可靠性?)

Why does OpenJDK keep bugs alive, inside their stable releases, but claiming that its clone of Oracle JDK (which it is not really), then what really technically separates OpenJDK from Oracle JDK? (only quick features availability? Or focused on stability/reliability?)

推荐答案

技术差异是每个目标的结果(OpenJDK应该是参考实现,对社区开放,而Oracle应该是商业的)

Technical differences are a consequence of the goal of each one (OpenJDK is meant to be the reference implementation, open to the community, while Oracle is meant to be a commercial one)

它们都具有几乎相同的代码Java API中的类;但是虚拟机本身的代码实际上是不同的,当涉及到库时,OpenJDK倾向于使用开放库,而Oracle倾向于使用封闭的库;例如,字体库

They both have "almost" the same code of the classes in the Java API; but the code for the virtual machine itself is actually different, and when it comes to libraries, OpenJDK tends to use open libraries while Oracle tends to use closed ones; for instance, the font library.

这篇关于从技术上讲,Oracle JDK和OpenJDK之间的主要区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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