title: Missing permissions attribute in main jar (but it exists in the jar)
body: <p><strong>Background</strong></p>
  
  <ul>
  <li>main.jar &lt;-- <em>main codebase</em></li>
  <li>util.jar</li>
  <li><p>HTML Code: </p>
  
  <p><code>&lt;applet id="app" 
           archive="main.jar,util.jar" 
           code="com/business/app/App.class" 
           mayscript="true"&gt;
              ... params ...
   &lt;/applet&gt;</code></p></li>
  </ul>
  
  <p><strong>Error</strong></p>
  
  <p><em>"Missing required Permissions manifest attribute in main jar <code>http://localhost/main.jar</code>"</em></p>
  
  <p><strong>What I have done</strong></p>
  
  <p>I signed both jar files with our certificate and running the following is fine.</p>
  
  <pre><code>jarsigner -verify main.jar
  jarsigner -verify util.jar
  </code></pre>
  
  <p>Also, I included the manifest BEFORE signing the jar files.</p>
  
  <p>In main.jar I have the <em>MANIFEST.MF</em> file:</p>
  
  <pre><code>Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.8.4
  Codebase: *
  Permissions: all-permissions
  Application-Library-Allowable-Codebase: *
  Caller-Allowable-Codebase: *
  Application-Name: AppName
  Created-By: 1.7.0_45-b18 (Oracle Corporation)
  </code></pre>
  
  <p>I have already taken a look at the following question to no avail</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/21404830/securityexception-during-executing-jnlp-file-missing-required-permissions-manif">SecurityException during executing jnlp file (Missing required Permissions manifest attribute in main jar)</a></li>
  </ul>
  
  <p><strong>Question</strong></p>
  
  <p>I already have the manifest, and it contains the correct permission. Does the order matter in the manifest, and/or are there any other dependencies or causes for the missing permissions manifest error?</p>
  
  <p><strong>TLDR</strong></p>
  
  <p>I am getting a missing required Permissions manifest attribute error in my main jar file even though I have included it. What other dependencies exist for the permissions attribute, if any?</p>