Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


License For Jersey.


I have a question about this license. I am writing some commercial software and I am a bit unclear as whether I am able to use this software library in my software could someone please shed some light onto the issue.

Licence Link: https://jersey.java.net/license.html



2 Answers

Seth Kroger
Seth Kroger
56,407 Points

The software is has dual open source licenses, meaning it can be used under one of the two. The choice here is between the CDDL and GPLv2. They are thought to be incompatible in the sense that software licensed under the CDDL can't be used in a GPL licensed project. The GPL option is probably there to broaden Jersey's use in other open source projects without worrying about whether you can mix the two licenses.

By using in a commercial project, I assume you mean use in and won't force me to open source a commercial project. The short answer is yes. The CDDL allows it (see 3.6. Larger Works). Only the libraries/packages already under the CDDL remain open-source.


Thank you Seth, this has made it a lot easier for me to understand and for linking me to the license terms.