title: Is it possible to mix --class-path and --module-path in javac (JDK 9)?
body: <p>When I compile a module that depends on other modules I've compiled previously I have to specify the <code>--module-path &lt;directory&gt;</code> option. This makes modules I depend on visible. </p>
  
  <p>But at the same time I would also like to make some non-modular Jar files visible. However if don't make them automatic modules and just specify the <code>--class-path some.jar</code> right next to <code>--module-path &lt;directory&gt;</code>, then <strong>javac</strong> seems to ignore the claspath and throws "package yyy not found" and other  "not found" errors. </p>
  
  <p>I can understand that using <code>--class-path</code> and <code>--module-path</code> at the same (compile) time is illegal, but <strong>javac</strong> does not warn me against it in any way.</p>