I created a java application and want to add Apache Commons Codec to it. What is right/legal way to use Apache (or any external library)? Would I be allowed to combine my Apache Commons lib and my project in single .jar, or I have to keep them separate? Where I need to mention about the licence. And the main question is it free? Can I publish my application including Apache Commons.

What is the normal practice using external libraries? I tried to read licence agreement (https://www.apache.org/licenses/LICENSE-2.0), but it didn't give me clear understanding.

  • So I need to copy from Apache site license.txt file as is. And create own notice.txt file where I place my name and date and some description: "Copyright 2018 John Doe Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0 ...". Both license.txt and notice.txt needs to be placed in root folder and in compiled .jar – eugene Mar 26 '18 at 11:50

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.