title: Java 9: Generating a runtime image with JLink using 3rd party jars
body: <p>I'd like to create a Java 9 runtime image that contains 3rd party jars. I have made a simple Java project (let's call this <code>Example</code>) to call a utility jar (let's call this <code>ExampleUtil.jar</code>). <code>Example</code> contains the <code>module-info.java</code> in the <code>src</code> directory and runs fine in Eclipse (I had added <code>ExampleUtil.jar</code> as a module dependency). If I call:</p>
  
  <pre><code>jlink -v
      --module-path "C:\Program Files\Java\jdk-9.0.4\jmods";C:\Temp
      --add-modules com.example.steven
      --output C:\Temp\image.steven
      --launcher launch=com.example.steven/com.example.steven`
  </code></pre>
  
  <p>... I get the error message:</p>
  
  <blockquote>
    <p>Error: module-info.class not found for ExampleUtil module</p>
  </blockquote>
  
  <p>Is there a way to create a runtime image using jars that aren't modules? Thank you.</p>