加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

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

发布时间:2020-12-15 00:40:40 所属栏目:Java 来源:网络整理
导读:我想在一个CDDL GPLv2许可下的专有软件中使用Glassfish的某些部分.我被允许这样做吗?我没有修改这些库的代码中的任何内容,所以这样可以,或者我的软件,因为它使用这些库,仍然被认为是衍生作品,因此是一个很大的禁忌? 我的意思是,根据http://jaxb.java.net/,
我想在一个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.

Classpath异常是这里的主要内容.请参阅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.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读