jmod and modular MR jars

Alan Bateman Alan.Bateman at
Fri Oct 13 18:01:16 UTC 2017

On 13/10/2017 18:45, Ryan Schmitt wrote:
> I noticed that `jmod create` seems to work fine when module-info.class is
> located in the root of the jar supplied on the classpath, but when it is
> located at META-INF/versions/9/module-info.class I get a stack trace
> instead:
> Error: module-info.class not found
> module-info.class not found
> at jdk.jlink/$JmodFileWriter.
> writeModuleInfo(
> at jdk.jlink/$JmodFileWriter.write(
> at jdk.jlink/
> at jdk.jlink/
> at jdk.jlink/
> Is this a bug?
JMOD != JAR file. Also JMOD is not an execution format. Maybe you meant 
to create a MR JAR with the `jar` tool?


More information about the jdk9-dev mailing list