问题
Can the tools.jar which comes with the Oracle JDK be distributed along with a commercial product which depends on it (that is, legally, according to the terms of Oracle's license)? Whether yes or no, please provide a reference to substantiate your answer.
回答1:
According to my reading, yes, but with some caveats:
- You must redistribute the entire Oracle JDK, OR the entire JRE with just "The javac bytecode compiler" which includes tools.jar; that redistribution is allowed to be "bundled" with your app.
- Redistributed JDK or JRE must be "complete and unmodified" (minus a couple sections about things you can add and/or subtract).
- Can never redistribute beta versions.
- You comply with the other general terms covered in the redistribution section of the license (my source for this entire answer).
来源:https://stackoverflow.com/questions/6755414/can-we-redistribute-oracle-tools-jar