java - 在专有软件中使用 Glassfish 库

标签 java licensing glassfish java-metro-framework

<分区>

我想在 CDDL + GPLv2 许可下的专有软件中使用 Glassfish 的某些部分。我可以这样做吗?我没有修改这些库的代码中的任何内容,所以这可以吗,或者我的软件,因为它使用这些库,仍然被认为是衍生作品,因此是一个很大的禁忌?

我的意思是,根据 http://jaxb.java.net/ ,JAXB 也在 CDDL + GPLv2 下,但我知道我可以在专有软件中自由使用它。这是因为 CDDL + GPLv2 实际上允许这样做,还是在与 JRE 捆绑时根据不同的许可证分发?

最佳答案

好的,我找到了答案。 Wikipedia说:

GlassFish is free software, dual-licensed under two free software licences: the Common Development and Distribution License (CDDL) and the GNU General Public License (GPL) with the classpath exception.

类路径异常是这里的主要内容。请参阅 Glassfish website 上许可协议(protocol)底部的黄色部分:

"CLASSPATH" EXCEPTION TO THE GPL VERSION 2

Certain source files distributed by Sun Microsystems, Inc. are subject to the following clarification and special exception to the GPL Version 2, but only where Sun has expressly included in the particular source file's header the words "Sun designates this particular file as subject to the "Classpath" exception as provided by Sun in the License file that accompanied this code."

Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License Version 2 cover the whole combination.

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module.? An independent module is a module which is not derived from or based on this library.? If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so.? If you do not wish to do so, delete this exception statement from your version.

基本上这意味着只要我分发 Glassfish 库的许可证,我就可以自由地将它们放在我的专有软件的类路径中。通过搜索下载的 Metro 源代码(我想使用的部分),我发现只有少数 Java 文件没有包含注释中所需的行。 (更准确地说,他们根本没有标题评论。)

关于java - 在专有软件中使用 Glassfish 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2646431/

相关文章:

annotations - Glassfish 上的 Spring Boot

java - 使用 Wildfly 的 JAX-RS ChunkedOutput 和 ChunkedInput

java - 如何让用户注册后看到自己的数据?

iphone - 将 iPhone 应用程序的开源信用信息放在哪里?

java - 求最大的行和列,解不一致

android - AppLicensing 失败 - 签名为空字符串

licensing - 使用 GPL 的非 GPL 内核模块

maven-2 - Maven Cargo 配置 Glassfish 2.1 实例来运行集成测试?

java - eclipse突然找不到兼容的jre

java - 将 Varchar 列类型映射到实体 jpa 中的 Integer