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