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

Message while creating java archive incorrect on UNIX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • CPU:
      sparc
    • OS:
      solaris_1

      Description

      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
      "/".

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: