在专有软件中使用Glassfish库 [英] Using Glassfish libraries in proprietary software

查看:111
本文介绍了在专有软件中使用Glassfish库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个CDDL + GPLv2许可证下的专有软件中使用Glassfish的某些部分。我可以这样做吗?我没有修改这些库的代码中的任何东西,所以这是好的,还是我的软件,因为它使用这些库,仍然被认为是衍生工作,因此是一个很大的不允许?



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

解决方案

好的,我找到了答案。 维基百科说:


GlassFish是一款免费软件,采用两种免费软件许可证进行双重许可:共同开发和分发许可证(CDDL)和带有classpath例外的GNU通用公共许可证(GPL)。


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


CLASSPATH对GPL版本2的例外



某些源文件由Sun Microsystems,Inc.发行的版本受到以下澄清以及GPL第2版的特殊例外,但仅限于Sun明确包含在特定源文件头中的单词
Sun将此特定文件指定为在这个代码附带的许可证文件中,Sun提供了Classpath异常。



静态或动态地将这个库链接到其他模块是基于这个库。因此,GNU通用公共许可证第2版的条款和条件涵盖了整个组合。



作为特殊例外,本图书馆的版权所有者允许您链接该库具有独立的模块来生成可执行文件,而不管这些独立模块的许可条款如何,并根据您的选择复制和分发生成的可执行文件,前提条件是您还可以针对每个链接的独立模块满足条款和条件该模块的许可证。独立模块是一个不是从这个库中派生或基于这个库的模块。如果你修改这个库,你可以将这个异常扩展到你的库的版本,但你没有义务这么做。如果您不希望这样做,请从您的版本中删除此异常声明。


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


I would like to use some parts of Glassfish in a proprietary software that are under a CDDL + GPLv2 license. Am I allowed to do that? I haven't modified anything in the code of these libraries, so is this OK, or my software, because it uses these libraries, is still considered derivative work, and thus a big no-no?

I mean, according to http://jaxb.java.net/, JAXB is also under CDDL + GPLv2, but I know I can freely use that in proprietary software. Is this because CDDL + GPLv2 actually allows that, or is it distributed under a different license when bundled with the JRE?

解决方案

Okay, I found the answer. Wikipedia says:

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.

The Classpath Exception is the main thing here. See the yellow section at the bottom of the license agreement on the Glassfish website:

"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.

Essentially that means that as long as I distribute the licenses with the Glassfish libraries, I am free to put them on the classpath of my proprietary software. Searching through the downloaded source of Metro (the part I want to use) I found only a handful of Java files that did not contain the required line in the comments. (More precisely they had no header comment at all.)

这篇关于在专有软件中使用Glassfish库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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