title: Unable generating module-info for legacy jar via jdeps using Java 11
body: <p>I need to generate <em>module-info</em> file for legacy jar which named as:
  <em>selenium-chrome-driver-3.141.59.jar</em> using the command:</p>
  
  <pre><code>jdeps --module-path modules --generate-module-info out selenium-chrome-driver-3.141.59.jar
  </code></pre>
  
  <p>But I'm getting as result:</p>
  
  <pre><code>Missing dependence: C:\...\selenium.chrome.driver\module-info.java not generated
  Error: missing dependencies
     org.openqa.selenium.chrome.ChromeDriver            -&gt; com.google.common.collect.ImmutableMap             not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.Capabilities                   not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.WebDriverException             not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.html5.LocalStorage             not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.html5.Location                 not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.html5.LocationContext          not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.html5.SessionStorage           not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.html5.WebStorage               not found
     org.openqa.selenium.chrome.ChromeDriver            -&gt; org.openqa.selenium.interactions.HasTouchScreen    not found
  ...
  </code></pre>
  
  <p>I tried as mentioned <a href="https://stackoverflow.com/a/47512109/8370915">here</a> and <a href="https://stackoverflow.com/questions/47080660/how-to-build-java-9-dependencies-from-maven-dependencies/47080726#47080726">here</a>:</p>
  
  <pre><code>jdeps --module-path modules --add-modules=ALL-MODULE-PATH --generate-module-info out selenium-chrome-driver-3.141.59.jar
  </code></pre>
  
  <p>Then I'm getting the same error.</p>
  
  <p>As alternative way, I tried to add separately modules like:</p>
  
  <pre><code>jdeps --module-path modules --add-modules  org.openqa.selenium.chrome,org.openqa.selenium.remote --generate-module-info out selenium-chrome-driver-3.141.59.jar
  </code></pre>
  
  <p>And I see this:</p>
  
  <pre><code>Exception in thread "main" java.lang.module.FindException: Module org.openqa.selenium.chrome not found
          at java.base/java.lang.module.Resolver.findFail(Resolver.java:877)
          at java.base/java.lang.module.Resolver.resolve(Resolver.java:128)
          at java.base/java.lang.module.Configuration.resolve(Configuration.java:411)
          at java.base/java.lang.module.Configuration.resolve(Configuration.java:245)
          at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration.&lt;init&gt;(JdepsConfiguration.java:117)
          at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.build(JdepsConfiguration.java:563)
          at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:589)
          at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:543)
          at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:519)
          at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
  </code></pre>
  
  <p>And no matter which module I'll add, the issue will be always as:</p>
  
  <pre><code>java.lang.module.FindException name_of_your_module
  </code></pre>
  
  <p>Using one level higher didn't help me also:</p>
  
  <pre><code>jdeps --module-path modules --add-modules  org.openqa.selenium --generate-module-info out selenium-chrome-driver-3.141.59.jar
  </code></pre>
  
  <p>The error will be:</p>
  
  <pre><code>Exception in thread "main" java.lang.module.FindException: Module org.openqa.selenium not found
          at java.base/java.lang.module.Resolver.findFail(Resolver.java:877)
          at java.base/java.lang.module.Resolver.resolve(Resolver.java:128)
          at java.base/java.lang.module.Configuration.resolve(Configuration.java:411)
  </code></pre>
  
  <p>So, the last thing that I can do is to create module-info manually and write inside each module using <code>exports</code>? </p>
  
  <p><strong>Updated:</strong></p>
  
  <pre><code>jdeps -cp guava-25.0-jre.jar;selenium-api-3.141.59.jar;selenium-remote-driver-3.141.59.jar selenium-chrome-driver-3.141.59.jar
  </code></pre>
  
  <p>To find classes via <a href="https://docs.oracle.com/en/java/javase/11/tools/jdeps.html#GUID-A543FEBE-908A-49BF-996C-39499367ADB4" rel="nofollow noreferrer">-cp</a> option:</p>
  
  <pre><code>selenium-chrome-driver-3.141.59.jar -&gt; guava-25.0-jre.jar
  selenium-chrome-driver-3.141.59.jar -&gt; java.base
  selenium-chrome-driver-3.141.59.jar -&gt; selenium-api-3.141.59.jar
  selenium-chrome-driver-3.141.59.jar -&gt; selenium-remote-driver-3.141.59.jar
  </code></pre>
  
  <p>I have added to <code>selenium-chrome-driver-3.141.59.jar</code>, <code>selenium-api-3.141.59.jar</code> also <code>guava-25.0-jre.jar</code> and <code>selenium-remote-driver-3.141.59.jar</code>.</p>