Differences between Sun JDK and OpenJDK

本文对比了Sun JDK与OpenJDK之间的主要区别,包括许可证、部署代码、捆绑代码及受第三方限制的代码等内容。指出OpenJDK作为自由软件的优势及其在插件和WebStart方面的不足。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Frans Thamura wrote:

> anyone have a list that compare Sun JDK with OpenJDK and also OpenJDK

> JRE with "Sun JRE

There is no OpenJDK JRE, specifically. The comparison that makes sense

is one between

Sun Java SE 6 JDK and the OpenJDK jdk6 project.


Differences are:


a) licenses:


OpenJDK jdk6 is Free Software, Sun's Java SE 6 JDK downloads are not, in

particular because

* they contain proprietary third party components (also known as

'encumbrancies'), that wouldn't be trivial to rip and replace in a

stable release series

* they contain Sun's own proprietary code that has not been / could not

be opened up so far


b) deployment code:


OpenJDK does not have a plugin or a webstart implementation.


The code Sun has in the deployment area has been largely rewritten for

Java SE 6 update 10, and the new code,

being a significant chunk of software, requires a new run through the

business decision making process on Sun's side.


Meanwhile, the IcedTea project augments the OpenJDK jdk6 project with

independent implementations

of the plugin and webstart, called gcjwebplugin and netx. Those

independent implementations have a different

set of strengths and weaknesses from Sun's implementations: they work on

64 bit Linux, for example, a platform

that hasn't been supported by Sun's own plugin yet. On the other hand,

gcjwebplugin currently lacks an

adequate Java-JavaScript integration that's required by some applets to

execute as well as expected.


c) bundled code:


Sun's Java SE 6 download comes with a lot of (third party) software

bundled in, for example

Java DB, Rhino, Visual VM, etc. OpenJDK jdk 6 project leaves such

software out as much as possible,

concentrating on the necessities required for a compatible

implementation of Java SE 6.


IcedTea augments OpenJDK jdk6 with Rhino, though there is still work to

be done on making the integration seamless.

There is also some initial work on integrating VisualVM into IcedTea.


d) encumbered code:


The Java SE 6 JDK still mostly contains the ~4 % of encumbered, i.e.

third party code that couldn't be licensed as

Free Software, and was replaced by open source implementations from the

community in OpenJDK 6.


cheers,

dalibor topic
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值