Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By SurfMan

Thread: Missing required Permission manifest attribute in jar

  1. #1
    anand mishra is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Exclamation Missing required Permission manifest attribute in jar

    Missing required Permission manifest attribute in jar-capture.png



    The manifest content is given below:

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.4
    Trusted-Library: true
    Application-Name: Test
    Permission: all-permissions
    Created-By: 1.7.0_07-b10 (Oracle Corporation)
    Caller-Allowable-Codebase: *
    Main-Class: com.test.ui.AppletVersion
    Codebase: *

  2. #2
    anand mishra is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: Missing required Permission manifest attribute in jar

    Hi anyone can help me .????
    the above error occur when i set the java permission high.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,358
    Rep Power
    6

    Default Re: Missing required Permission manifest attribute in jar

    Try typing "java" followed by that error message into Google. You're not the first one to run into this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,091
    Rep Power
    4

    Default Re: Missing required Permission manifest attribute in jar

    Quote Originally Posted by gimbal2 View Post
    Try typing "java" followed by that error message into Google. You're not the first one to run into this.
    You'd think that would take less time than making a screenshot, registering here, and posting two messages. *sigh*
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,358
    Rep Power
    6

    Default Re: Missing required Permission manifest attribute in jar

    Yes but in this century people need to be reminded that Google exists and is such a wonderful tool to research problems :/
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    anand mishra is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: Missing required Permission manifest attribute in jar

    Quote Originally Posted by gimbal2 View Post
    Yes but in this century people need to be reminded that Google exists and is such a wonderful tool to research problems :/
    Yes it's very true but I had tried my best with google and only thing I came to know that this can be due to missing Permission attribute either
    in jar or in html object tag. As I had already added it on both locations, bellow is some snippet of my code :::

    1) code from my js file which is called in html page:

    document.write('<APPLET align="baseline" archive="admin.jar" width="1000" height="595" >');
    document.write('</XMP>');
    document.write('<PARAM NAME = "Application-Name" VALUE="Test App">');
    document.write('<PARAM NAME = "Main-Class" VALUE="com.test.ui.AppletVersion" > ');
    document.write('<PARAM NAME = "Permission" VALUE="all-permissions" >');
    document.write('<PARAM NAME = "Trusted-Library" VALUE="true">');
    document.write('<PARAM NAME="java_type" VALUE="application/x-java-applet;jpi-version=1.7">');
    document.write('<PARAM NAME = "cache_archive" VALUE="admin.jar">');
    document.write('<PARAM NAME = "cache_version" VALUE="1.1.2.44,1.1.1.19,1.1.1.18">');
    document.write('<PARAM NAME="scriptable" VALUE="true">');

    2) Contents of manifest

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.4
    Trusted-Library: true
    Application-Name: Test App
    Permission: all-permissions
    Created-By: 1.7.0_07-b10 (Oracle Corporation)
    Caller-Allowable-Codebase: *
    Main-Class: com.test.ui.AppletVersion
    Codebase: *

    Hope to know what am I missing in these ..

  7. #7
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,091
    Rep Power
    4

    Default Re: Missing required Permission manifest attribute in jar

    The name is Permissions (plural), not Permission.

    JAR File Manifest Attributes for Security
    anand mishra likes this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  8. #8
    anand mishra is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: Missing required Permission manifest attribute in jar

    Quote Originally Posted by SurfMan View Post
    The name is Permissions (plural), not Permission.

    JAR File Manifest Attributes for Security
    thanks alot.....
    Now its working....

Similar Threads

  1. Manifest from eclipse
    By JavaJimme in forum Eclipse
    Replies: 1
    Last Post: 05-22-2013, 02:50 PM
  2. Problem with Manifest file
    By Wnt2bsleepin in forum New To Java
    Replies: 3
    Last Post: 01-11-2013, 09:49 PM
  3. Replies: 5
    Last Post: 09-16-2011, 08:01 AM
  4. Jar File Manifest
    By hitmen in forum New To Java
    Replies: 6
    Last Post: 03-11-2009, 05:08 AM
  5. Replies: 1
    Last Post: 12-15-2008, 09:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •