Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4400388

Message while creating java archive incorrect on UNIX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.3.1
    • tools
    • jar
    • sparc
    • solaris_1

      STEPS TO REPRODUCE:

      - Set path to use JDK1.3.1 (/usr/local/java/jdk1.3.1/solsparc|linux-i386)

      - Using the jar -cvf option
      <deepsk@deepesh:/home/deepsk/expt> jar -cvf jars.jar /home/deepsk/expt/trash
      adding: home/deepsk/expt/trash/ (in=0) (out=0) (stored 0%)
      adding: home/deepsk/expt/trash/Neko2.class (in=4336) (out=2389) (deflated 44%)
      adding: home/deepsk/expt/trash/Neko2.java (in=5539) (out=1605) (deflated 71%)

      - Using the tar -cvf option
      <deepsk@deepesh:/home/deepsk/expt> tar -cvf jars.tar /home/deepsk/expt/trash
      a /home/deepsk/expt/trash/ 0K
      a /home/deepsk/expt/trash/Neko2.class 5K
      a /home/deepsk/expt/trash/Neko2.java 6K

      What is happening is that jar isn't showing the starting "/", whereas the tar
      utility shows that. The above command was run on Solaris machine. Jar gives the
      same output on Linux but strangely tar utility on Linux removes the starting
      "/".

            mr Mark Reinhold
            dkhandelsunw Deepesh Khandelwal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: