File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while using jar -tvf file.war

 
thirumala raju
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,

can anyone please help on this whby i am getting this error while extracting the war file by unsing this command\

sshams:spdwa530:64> jar -tvf BootstrapWAR.war
java.io.FileNotFoundException: BootstrapWAR.war (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:91)
at java.io.FileInputStream.<init>(FileInputStream.java:54)
at sun.tools.jar.Main.run(Main.java:181)
at sun.tools.jar.Main.main(Main.java:899)
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You get this error because the WAR file you're trying to look at (BootstrapWAR.war) is not in the current directory. On which operating system is this? Note that some operating systems (such as Linux or Unix) are case-sensitive.

By the way "tvf" does not extract the war - it only lists the files in the war. To extract it, use "xvf".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic