Patching module raises module not found error
问题 I use jdk 11 and try to understand --patch-module option for java compiler. Here is the simple module I have: mdl-platform | | |___com.test.mdl.platform | | | |___ ... | | | |___Patch.java | |___module-info.java module-info.java : module com.test.mdl.plarform { exports com.test.mdl.platform; } Patch.java : public class Patch { } I have Patch.java file and wanted to patch the module with it. I tried: I. $ javac --patch-module com.test.mdl.platform=mdl-plarform/src/main/java/ \ mdl-plarform/src