-jar option and the modulepath

Richard Hillegas rhillegas at comcast.net
Thu Nov 22 19:27:25 UTC 2018


Can I scribble something in a jar file manifest which will cause "java 
-jar" to boot with a modulepath rather than a classpath? I do not see 
any support for a modulepath attribute in the Java 9 jar file 
documentation at 
https://docs.oracle.com/javase/9/docs/specs/jar/jar.html. My sense is 
that the -jar option commits the JVM to using a classpath.

Thanks,
-Rick



More information about the core-libs-dev mailing list