通用开发和分发许可证 (CDDL) 和 GNU 公共许可证 v2（类路径例外）
绝大部分的 NetBeans IDE 6.9.1 代码是依照双许可证（包括通用开发和分发许可证 (CDDL) v1.0 和 GNU 通用公共许可证 (GPL) v2））提供的。请参见 NetBeans 中的组件详细信息以及适用于这些组件的许可证。
5.5 版之前的 NetBeans 源代码是依照 Sun 公共许可证条款提供的。可以在此处找到有关这一变化原因的说明。
CDDL 和更早的 SPL 均基于 Mozilla 公共许可证 (MPL)；CDDL 是一个重用性更好的许可证，并且编写内容的可读性更好。这两个许可证具有相同的特性：
- 必须向 netbeans.org 提供直接在源文件中进行的更改（错误修复或增强功能），但不需要提供您编写的链接到 NetBeans 代码的新源文件
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its
affiliates. Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
nbbuild/licenses/CDDL-GPL-2-CP. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this particular file
as subject to the "Classpath" exception as provided by Oracle in the
GPL Version 2 section of the License file that accompanied this code. If
applicable, add the following below the License Header, with the fields
enclosed by brackets  replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
The original software is NetBeans. The initial developer of the original
software was Sun Microsystems, Inc.; portions copyright 1997-2006 Sun
Microsystems, Inc. All rights reserved.
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or
GPL Version 2] license." If you do not indicate a single choice of license,
a recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright holder.
Oracle is not responsible for the availability of third-party Web sites
mentioned in this document. Oracle does not endorse and is not
responsible or liable for any content, advertising, products, or other
materials on or available from such sites or resources. Oracle will not be
responsible or liable for any damage or loss caused or alleged to be
caused by or in connection with use of or reliance on any such content,
goods, or services available on or through any such sites or resources.