I want distribute JRE extracted using jlink from the OpenJDK 21 binaries created by Oracle at jdk.java.net. I am successful in identifying the dependencies for my project and and extracting the JREs.
The application runs without any issues when tested. The issue lies with the licensing. Although OpenJDK itself is released under GPLv2, the license has many exceptions, below is one such exception. In general, it is legal to distribute the JRE with the application?. The application is free of cost. Is it better distributing it without JRE?
Note that Oracle includes multiple, independent programs in this software
package. Some of those programs are provided under licenses deemed
incompatible with the GPLv2 by the Free Software Foundation and others.
For example, the package includes programs licensed under the Apache
License, Version 2.0 and may include FreeType. Such programs are licensed
to you under their original licenses.
2