jmod issue

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Mar 1 15:16:44 PST 2012


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