I ran javac on Windows and I would have expected the error to have been caught, not to dump a stack trace. The command was to try and compile "*.java", (which should really be implemented to find all java files , but doesn't).
>javac --module-source-path src -d mods *.java The exception was: Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <*> at index 0: *.java at sun.nio.fs.WindowsPathParser.normalize(java.base@9-ea/WindowsPathPars er.java:182) at sun.nio.fs.WindowsPathParser.parse(java.base@9-ea/WindowsPathParser.j ava:153) at sun.nio.fs.WindowsPathParser.parse(java.base@9-ea/WindowsPathParser.j ava:77) at sun.nio.fs.WindowsPath.parse(java.base@9-ea/WindowsPath.java:92) at sun.nio.fs.WindowsFileSystem.getPath(java.base@9-ea/WindowsFileSystem .java:229) at java.nio.file.Paths.get(java.base@9-ea/Paths.java:84) at com.sun.tools.javac.main.Option$34.process(jdk.compiler@9-ea/Option.j ava:619) at com.sun.tools.javac.main.Option.handleOption(jdk.compiler@9-ea/Option .java:988) at com.sun.tools.javac.main.Arguments.doProcessArgs(jdk.compiler@9-ea/Ar guments.java:381) at com.sun.tools.javac.main.Arguments.processArgs(jdk.compiler@9-ea/Argu ments.java:303) at com.sun.tools.javac.main.Arguments.init(jdk.compiler@9-ea/Arguments.j ava:201) at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:212 ) at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:148 ) at com.sun.tools.javac.Main.compile(jdk.compiler@9-ea/Main.java:55) at com.sun.tools.javac.Main.main(jdk.compiler@9-ea/Main.java:41)