Java 9 EA javac exception on Windows

Stephen Colebourne scolebourne at
Tue Sep 20 05:19:59 UTC 2016

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 at 9-ea/WindowsPathPars
        at sun.nio.fs.WindowsPathParser.parse(java.base at 9-ea/WindowsPathParser.j
        at sun.nio.fs.WindowsPathParser.parse(java.base at 9-ea/WindowsPathParser.j
        at sun.nio.fs.WindowsPath.parse(java.base at 9-ea/
        at sun.nio.fs.WindowsFileSystem.getPath(java.base at 9-ea/WindowsFileSystem
        at java.nio.file.Paths.get(java.base at 9-ea/
        at$34.process(jdk.compiler at 9-ea/Option.j
        at at 9-ea/Option
        at at 9-ea/Ar
        at at 9-ea/Argu
        at at 9-ea/Arguments.j
        at at 9-ea/
        at at 9-ea/
        at at 9-ea/
        at at 9-ea/

More information about the jigsaw-dev mailing list