title: Error occurred during initialization of boot layer FindException: Module not found
body: <p>Executing a simple "Hello World" program using Java 9 results in the following error message:</p>
  
  <blockquote>
    <p>Error occurred during initialization of boot layer<br>
    java.lang.module.FindException: Module com.pantech.myModule not found</p>
  </blockquote>
  
  <p>The command line that I executed was:</p>
  
  <pre><code>java --module-path bin -m com.pantech.myModule/com.pantech.myModule.HelloWorld
  </code></pre>
  
  <p>This command line is executed from the parent directory of my <code>bin</code> directory that contains all of the <code>.class</code> bytecode files.</p>
  
  <p>The <code>module-info.class</code> file is located in the <code>com.pantech.myModule</code> directory that is located in the <code>bin</code> directory. The <code>HelloWorld.class</code> file contains the main method and is located in the package directory within the <code>com.pantech.myModule</code> directory. Therefore, the pathname of the <code>HelloWorld.class</code> file is <strong><em>bin\com.pantech.myModule\com\pantech\myModule\HelloWorld.class</em></strong>.  </p>
  
  <p>The <code>HelloWorld</code> class is in the <code>com.pantech.myModule</code> package (package name same as the module name).  </p>
  
  <p>I am using Windows 10 as the Operating System. From everything that I have read, the above command line should be correct. Any suggestions on how to fix this?</p>