Skip to content

Tag: java-module

Split Packages: Java Modules vs Sealed Jars

Both Sealed Packages/Jars and the Java Module System disallow spliting packages across several jars. Does that mean that all packages contained within a Module are implicitly sealed? If not what does explicitly sealing the jar change? Answer Yes, packages within modules are always implicitly sealed. This is s…

How to deal with ResolutionException?

I’m trying to use Java Modules in my Spring Boot project and I’m getting the following exception: How can I solve this problem? Answer Try using JDK8 to run this code. It seems to be a compatability issue Edit: The root cause is that this package has been removed. (https://jcp.org/en/jsr/detail?id…

Gradle build – add module path

My question: How do I set a module path for gradle build? I’ve become comfortable working with Java modules from the command line. I do a frequent exercise in Powershell which results in these source files. appMod/module-info appMod/appPack.Entry greetMod/module-info greetMod/greetPack.Hello Since the a…