I need several jar libraries that are build with Java 8 and that do not contain the needed module-info.jar files. But the application’s dependencies require at least Java 11 (JavaFX).
Compiling is fine, but I always get the runtime error: “Error occurred during initialization of boot layer java.lang.module.FindException: Module … not found, required by …” (… are the module names).
Does anyone know, how to setup gradle (and maybe IntelliJ) that the modules are found at runtime? Unfortunately, I cannot upgrade the libraris to Java 11 or higher.
I already tried to add the libs to the –class-path an d–module-path when executing java, but that did not help.
user25056389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.