jmod issue

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Mar 1 15:22:28 PST 2012


OK -- turns out " Illegal module-name character at index 7" is a synonym 
for "file not found"

-- Jon

On 03/01/2012 03:16 PM, Jonathan Gibbons wrote:
> jmod --help includes the following text:
>
>
> jmod install [--noverify] <module-file> ...
>
> but if I specify a filename, I get the following issue:
>
> %/opt/jdk/jigsaw/bin/jmod install -L mlib modules/hello.jmod
> java.lang.IllegalArgumentException: modules/hello.jmod: Illegal 
> module-name character at index 7
> org.openjdk.jigsaw.cli.Command$Exception: 
> java.lang.IllegalArgumentException: modules/hello.jmod: Illegal 
> module-name character at index 7
>     at org.openjdk.jigsaw.cli.Librarian$Install.go(Librarian.java:242)
>     at org.openjdk.jigsaw.cli.Librarian$Install.go(Librarian.java:186)
>     at org.openjdk.jigsaw.cli.Command.run(Command.java:97)
>
> How should I install a .jmod file?
>
> -- Jon




More information about the jigsaw-dev mailing list