This discussion is archived
2 Replies Latest reply: Feb 15, 2013 2:14 AM by rukbat RSS

Cannot extract .war file in linux

990712 Newbie
Currently Being Moderated
Hello,
I had a problem in extracting .war file.
I got a .war file to deploy in weblogic application server.
I want to extract this file and look inside it (need to edit) but i couldn't.

I use this commnand and got following error.

[sarad.mk@inek2 sampleapp]$ ls
orgtestApp.war testApp.war


[sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
bash: jar: command not found

Can anyone please help me out quick. I am in real difficult.

Thanks in advance,
  • 1. Re: Cannot extract .war file in linux
    bigdelboy Pro
    Currently Being Moderated
    rocky777 wrote:
    Hello,
    I had a problem in extracting .war file.
    I got a .war file to deploy in weblogic application server.
    I want to extract this file and look inside it (need to edit) but i couldn't.

    I use this commnand and got following error.

    [sarad.mk@inek2 sampleapp]$ ls
    orgtestApp.war testApp.war


    [sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
    bash: jar: command not found

    Can anyone please help me out quick. I am in real difficult.

    Thanks in advance,
    Re: jar -xvf orgtestApp.war

    This means you have not been able to locate the 'jar' command on your local path:
    ( echo $PATH ).

    The solution is to locate the full path to a jar command. These are likely to be in a java sdk bin directory; if you have one on your machine. You should then be able to work by adding that directory to your path or perhaps specifying the full path to the jar file.

    Some other utilities are able to do this also: in checking my memory on this i seen the following thread on java coderanch: http://www.coderanch.com/t/91536/java/edit-war-file-JSP
  • 2. Re: Cannot extract .war file in linux
    rukbat Guru Moderator
    Currently Being Moderated
    Duplicate cross-post:
    Got a error in extracting war file

    +... locking+

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points