【问题标题】:JDK Source Code License Inconsistency [closed]JDK源代码许可不一致[关闭]
【发布时间】:2013-04-23 10:56:38
【问题描述】:

我安装了最新的 JDK (1.7.0_21)。当我在 Eclipse 中查看基础类的源代码时,例如java.lang.String,文件顶部的许可证显示为:

/*
 * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

此源代码来自 JDK 版本附带的 src.zip 文件。

当我在这里查看源代码时: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/lang/String.java?av=f

...我看到了 GPL v2.0 许可标头。

/*
 * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

据我了解,JDK 1.7 是作为完全开源发布的,并根据 GPL 2.0 获得许可。

有人可以解释许可差异吗?

【问题讨论】:

  • 猜测,一个是 openJDK 的许可证,另一个是 JDK1.7 的源代码,它们是不同的软件。

标签: licensing java gpl


【解决方案1】:

OpenJDK 在 GPL 2.0 下发布

来自 OpenJDK FAQs

OpenJDK 是在什么开源许可证下发布的?

GPL v2 几乎适用于所有虚拟机,而 GPL v2 + 类库和那些部分的类路径异常 公开公共 API 的虚拟机。

Oracle 会改变 OpenJDK 许可模式吗?

没有。 OpenJDK 社区在以下人员的贡献下继续蓬勃发展 Oracle 以及其他公司、研究人员和个人,以及 基于 GPL 的许可模式是这一成功的很大一部分。 Oracle 没有改变它的计划。

Oracle JDK 在 Oracle 许可下发布。 来自FAQs

Java SE 在 Oracle 二进制代码许可下继续可用 (BCL) 免费。

【讨论】:

  • 重点:Oracle的JDK7与OpenJDK7不同。有一次,甲骨文将尽可能多的代码捐赠给开源。因此,Oracle JDK7 和 OpenJDK7 之间的许多源文件是相同的,但带有不同的许可证。
【解决方案2】:

您正在查看两个不同的版本,一个是 OpenJDK 7 的旧版本,另一个是基于 OpenJDK 的最新版本的 Oracle JDK。

【讨论】:

    猜你喜欢
    • 2011-02-23
    • 1970-01-01
    • 1970-01-01
    • 2020-11-15
    • 2013-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-23
    相关资源
    最近更新 更多