My directory looks like this. I am just outside of the blah folder.
$ tree.com //F
Folder PATH listing for volume Acer
Volume serial number is 127C-AD6A
C:.
└───blah
└───src
└───main
└───java
└───blahModule
│ module-info.java
│
└───blahPackage
blah.java
Then, I compile with the following command line options.
--module blahModule--module-source-path blahModule="blah/src/main/java/blahModule"-d "blah/classes"
Now, my directory looks like this.
$ javac --module blahModule --module-source-path blahModule="blah/src/main/java/blahModule" -d "blah/classes"
$ tree.com //F
Folder PATH listing for volume Acer
Volume serial number is 127C-AD6A
C:.
└───blah
├───classes
│ └───blahModule
│ │ module-info.class
│ │
│ └───blahPackage
│ blah.class
│
└───src
└───main
└───java
└───blahModule
│ module-info.java
│
└───blahPackage
blah.java
Cool. Exactly as expected.
Now, I want to run my code. I used the following commandline options.
--module "blahModule/blahPackage.blah"--module-path "blah/classes"
And this is the output.
$ java --module "blahModule/blahPackage.blah" --module-path "blah/classes"
Error occurred during initialization of boot layer
java.lang.module.FindException: Module blahModule not found
I cycled through many, many permutations. But I can't seem to find what I did wrong. Why can't it find my module?
Here are my files, though I doubt having them will help.
module-info.java
module blahModule
{
requires java.base;
// requires java.desktop;
}
blah.java
package blahPackage;
public class blah
{
public static void main(String[] args)
{
System.out.println("blah");
System.out.println(java.util.Arrays.asList(args));
}
}