title: Javapackager: Cannot find or load main class
body: <p>I have created a <code>JavaFX</code> project and am able to run it with the command </p>
  
  <p><code>java -classpath [very-long-list-of-class-paths] danIDE.Main</code></p>
  
  <p>However, when I try to use <code>javapackager</code> to create a jar out of it and run with <code>java -jar out.jar</code>, the prompt says <code>Error: Could not find or load main class danIDE.Main</code></p>
  
  <p>The command I used to create the jar is </p>
  
  <p><code>javapackager -createjar -v -classpath [very-long-list-of-class-paths] -srcdir src -outfile out -appclass danIDE.Main</code></p>
  
  <p>I have googled for a long time on this problem and I still couldn't find the solution. Can someone point me to the right direction? Thanks a lot!</p>
  
  <hr>
  
  <p>Edit: 
  Here is the project structure. </p>
  
  <p><a href="https://i.stack.imgur.com/3Lp9v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3Lp9v.png" alt="Project Structure"></a></p>
  
  <p>and here is the exploded jar.</p>
  
  <p><a href="https://i.stack.imgur.com/kDhWK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kDhWK.png" alt="enter image description here"></a></p>
  
  <p>New exploded jar as @Garry requested:</p>
  
  <p><a href="https://i.stack.imgur.com/ptmHe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ptmHe.png" alt="enter image description here"></a></p>