Tuesday, October 4, 2016

JRE security warning: This application will be blocked in a future Java security update because the JAR file manifest does not contain the Permissions attribute. Please contact the Publisher for more information.

JRE security warning: This application will be blocked in a future Java security update because the JAR file manifest does not contain the Permissions attribute. Please contact the Publisher for more information.



Warning Reason: When a jar file is signed by a Trusted Certificate but its manifest does not contain the Permissions attribute, then following message will appear.


Solution

Insert the Permissions attribute into the jar file. This is a two steps operation, first create a text file with the Permissions attribute and then insert it into the jar file.

Step-I: Create text file with permission attribute
Textfile name: addToManifest.txt
Location: C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin
Text file contain: permissions: all-permissions
                           Trusted-Only: true
                           Trusted-Library: true



Step-II: Insert permission attribute into the jar file
C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin>jar ufm C:\Oracle\Middleware\Oracle_FRHome1/forms/java /clientinfos.jar addToManifest.txt





No comments:

Post a Comment