I am new to using Java 9 modules.

I am aware that there are different types of Java 9 modules such as Automatic modules and Unnamed modules.

I am curious why I am able to use third-party dependencies such as google-guava as Automatic modules directly in a module, but when I use a library that I have written which does not have a module-info.java file, I need to add jvm options like --upgrade-module-path. Are there any solutions available that would eliminate the need to add jvm options?

Here is a link to my demo: https://github.com/FadeDemo/java-module-demo/blob/main/module-consumer-new/src/main/java/org/fade/demo/module/consumer/niu/Test.java

0

There are 0 best solutions below