Reassigning ANTLR Runtime Classes

I am creating a java project packaged as a jar file, which is partially based on the ANTLR generated lexer / parser. My question is, is it a standard practice to redistribute ANTLR runtime classes in a jar file, or if users need to run the ANTLR runtime on their own and make sure it is configured correctly in the classpath?

The ANTLR license ( http://www.antlr.org/license.html ) indicates the following:

"Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and / or other materials provided with the distribution."

However, the execution package does not include the license file. Does this mean it's okay to redistribute the binary if an ANTLR license is added? Thanks!

+4
source share
1 answer

Yes, if you are selling or otherwise distributing a packaged jar or executable, standard practice includes ANTLR runtime. You can include a README file in your distribution that explains that the ANTLR runtime is included and provides a copy of the license.

If you need, the ANTLR license allows you to archive ANTLR runtime classes with your own classes so that you can have one jar executable.

+1
source

All Articles