tl;dr Is it legal to redistribute tools.jar
and JRE component
of OpenJDK 8 with my app? If possible, tell me what OpenJDK vendor I can redistribute (RedHat, Azul,...) Installing JDK on user machine is NOT an answer here.
My application uses the Java Attach API, which needs tools.jar
and JRE component
of JDK (NOT the JRE
from java.net, and because bundling attach.dll
instead of the whole JRE component
won't work (it will print out error Cannot find dependent libraries
)). I want to include these components (tools.jar
and JRE Component
) in my app directory (not compiled inside the app), so that one only needs to install Java (normal JRE, from java.net) to run my app.
The problem is that I don't know if redistributing those without the whole OpenJDK package is legal. I did some search on the Internet, many sources said that one cannot redistribute OpenJDK without redistributing the whole bundle (https://stackoverflow.com/a/22477688/7908886). While some said that one can redistribute it as long as he/she comply with the GPL 2.0 with CLASSPATH EXCEPTION license of OpenJDK. (https://opensource.stackexchange.com/a/4583).
I'm really really confused here. If it is allowed to redistribute components of OpenJDK without the whole thing, please tell me how to do it step-by-step (and what OpenJDK vendor I can redistribute, such as: RedHat, Azul,...).
P/S: I have thought of notifying the user to install JDK before running the app, but I think JDK is for developer and kinda heavy (my customers will complain and they are not really good at computer stuffs, actually none of them will use JDK for any other purposes), so installing JDK is NOT an answer here.