how to add manifest entries into custom jar files such as jacob.jar or jar files containing icons...

Upload: hasan-fakih

Post on 01-Jun-2018

240 views

Category:

Documents


3 download

TRANSCRIPT

  • 8/9/2019 How to Add Manifest Entries into Custom Jar Files Such as jacob.jar or Jar Files Containing Icons (Doc ID 1583119.1)

    1/2

    ment 1583119.1

    support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=232511540974903&id=1583119.1&_afrWindowMode=0&_adf.ctrl-state=o88kf1qzp_4[2/24/2014 3:50:58 PM]

    Support Identi er: 16112605 (Bluering S.A...PowerView is On (0) Ali Contact Us H

    n this Document

    Goal

    Solution

    References

    APPLIES TO:

    Oracle Forms - Version 11.1.1.6.0 and laternformation in this document applies to any platform.

    GOAL

    With the release of JRE 1.7.0_25 per mi ssi ons and codebase attributes are expected to be included in the JAR Manifest File. Please see Note 1563023.1

    Oracle provided jar les such as frmall.jar, frmwebutil.jar etc are included with these manifest entries through Patch 17448420 .

    f on 11.1.1.4 the manifest x for Oracle provided jar les is in Patch 17974937 .

    Custom jar les such as jacob.jar, jar les containing icons, or others may not have these attributes included in the jar les so this note describes how to updatehe manifest.

    Warning: Oracle currently does not support re-signing or altering in any way the jar les provided by Oracle such as frmall.jar, frmwebutil.jar, etc.

    SOLUTION

    . Create a text le with the following entries and place it in the same directory as your jar le. In this example, we will call it mymanifest.txt

    Note that the following attributes should be included as a minimum but their values are examples only. Depending on your application, you may wish toconsider different values. You can view further documentation on possible values here . Also, note that in rare situations - especially when multiple jar les arebeing used - the "Trusted-Library: true" attribute must also be added to the manifest for jacob.jar or a java.lang.NoClassDefFoundError orClassNotFoundException will occur. A possible explanation for this is found here .

    Note: The last line of the manifest le must end in a new line or carriage return. See Modifying a Manifest File .

    2. Include the JDK Path in the environment variable PATH

    export PATH=/jdk/bin:$PATH

    3. Add the attributes of the text le to an existing jar manifest by executing the following command:

    jar -ufm jacob.jar mymanifest.txt

    This will modify the manifest.mf inside the given jar le.

    4. Resign the Jar le. (Modifying a signed jar le in any way will break the signature so resigning is necessary).

    Permi ssi ons: al l -permi ssi onsCodebase: *Appl i cat i on-Name: Oracl eFor ms

    How to Add Manifest Entries into Custom Jar Files Such as jacob.jar or Jar Files Containing Icons (Doc ID1583119.1)

    To Bott

    Modi ed: 22-Feb-2014 Type: HOWTO Language: English

    Dashboard Service Requests Patches & UpdatesKnowledge Adv

    English

    Search Knowledge Base

    https://support.oracle.com/epmos/faces/DocumentDisplay?id=1563023.1https://support.oracle.com/epmos/faces/DocumentDisplay?id=1563023.1https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?patchId=17448420https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?patchId=17974937http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissionshttp://www.coderanch.com/t/566061/Applets/java/ClassNotFoundException-online-certification-validation-enabledhttp://docs.oracle.com/javase/tutorial/deployment/jar/modman.htmlhttps://support.oracle.com/epmos/faces/DocContentDisplay?id=1583119.1http://docs.oracle.com/javase/tutorial/deployment/jar/modman.htmlhttp://www.coderanch.com/t/566061/Applets/java/ClassNotFoundException-online-certification-validation-enabledhttp://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#permissionshttps://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?patchId=17974937https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?patchId=17448420https://support.oracle.com/epmos/faces/DocumentDisplay?id=1563023.1

  • 8/9/2019 How to Add Manifest Entries into Custom Jar Files Such as jacob.jar or Jar Files Containing Icons (Doc ID 1583119.1)

    2/2