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

前端之家收集整理的这篇文章主要介绍了java – 在专有软件中使用Glassfish库前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想在一个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文件评论中没有包含所需的行. (更准确地说,他们根本没有标题评论.)

猜你在找的Java相关文章