1 Reply Latest reply on Oct 19, 2004 6:50 AM by robisz

    Unable to include manifest file to my jar file

    newhorizon

      Hi,
      I am using Java JDK 1.4. I have created MyFistEjb.jar file which has 3 class files (EJB files). Now, I have to include xml files which are present in META-INF folder. I gave the following command at command prompt to include manifest files.

      jar uvfm MyFirstEjb.jar META_INF.

      But it gave the following error:

      " java.io.FileNotFoundException: META-INF (Access is denied)"

      Can anyone point out the solution to this error.


      Thanks,

        • 1. Re: Unable to include manifest file to my jar file
          robisz

          The xml files in META-INF folder are not manifest files...
          Manifest file is META-INF/MANIFEST.MF

          If you want to add manifest file for a jar, you need to specify the file itself
          instead of META-INF folder.

          File managers like Total Commander (or mc in linux) are very
          useful for extracting/updating jar files.