title: java Jar containing jars => java.lang.NoClassDefFoundError -> How to include .jar files
body: <p>jar file </p>
  
  <p><a href="https://i.stack.imgur.com/gJqbE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gJqbE.png" alt="enter image description here"></a></p>
  
  <p>when I run <code>java -jar main.jar</code> I get the following error:
  <a href="https://i.stack.imgur.com/kOm1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kOm1Y.png" alt="enter image description here"></a></p>
  
  <p>The main class of the .jar file <code>second.jar</code> which is one of several libraries inside is not accessible.</p>
  
  <p>I cannot rebuild the project since I just have the <code>main.jar</code> file.</p>
  
  <p>How can I write a <code>run.bat</code> file or a <code>mainifest.mf</code> file that all .jar files that are contained in the <code>main.jar</code> file are accessible.</p>
  
  <p>Here is the <code>mainifest.mf</code> file inside the <code>main.jar</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/Y7Vxc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y7Vxc.png" alt="enter image description here"></a></p>