title: How to load a class from module(.jmod) file at runtime?
body: <p>I want to load classes from a module (.jmod) file at runtime into the application memory.</p>
  <p>I know that we can easily load classes from a (.jar) file using :-)</p>
  <pre><code>ClassLoader loader = URLClassLoader.newInstance(new URL[]{
                  jarFile.toURL()
              });
  </code></pre>
  <p>The total code snippet can be found at <a href="https://github.com/omegaui/omegaide-better-deassembler" rel="nofollow noreferrer">this-repo</a> in src <strong>omega.deassembler.JarLoader</strong> class</p>
  <p>But the problem is URLClassLoader is unable to read the modules(.jmod).</p>
  <p>So is there any other internal class or library to load classes from a module(.jmod) file.</p>
  <p>Actually, I am creating an IDE and this-repo is a part of it for loading content-assist hints.</p>
  <p>Earlier, I was using <strong>javap</strong> command to disassemble and load hints (see <a href="https://github.com/omegaui/omegaide" rel="nofollow noreferrer">omegaide on github</a>).</p>
  <p>But this technique consumes much time, so i am writing it again!</p>
  <p>Thank You.</p>