java - Missing permissions attribute in main jar (but it exists in the jar) -


background

  • main.jar <-- main codebase
  • util.jar
  • html code:

    <applet id="app" archive="main.jar,util.jar" code="com/business/app/app.class" mayscript="true"> ... params ... </applet>

error

"missing required permissions manifest attribute in main jar http://localhost/main.jar"

what have done

i signed both jar files our certificate , running following fine.

jarsigner -verify main.jar jarsigner -verify util.jar 

also, included manifest before signing jar files.

in main.jar have manifest.mf file:

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) 

i have taken @ following question no avail

question

i have manifest, , contains correct permission. order matter in manifest, and/or there other dependencies or causes missing permissions manifest error?

tldr

i getting missing required permissions manifest attribute error in main jar file though have included it. other dependencies exist permissions attribute, if any?

i able resolve this. silly issue. manifest.mf file goes under meta-inf directory.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -