Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


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,413 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.