user1439090
user1439090

Reputation: 812

Converting zip file to war file

I converted a war file into a zip file to do some customizations. Renaming it shows it as war file but with a zip icon and zip extension in properties. How do one convert a zip file back into a war file?

Upvotes: 1

Views: 45765

Answers (4)

Saurabh Gupta
Saurabh Gupta

Reputation: 13

1 You can change the name of the file from .zip to .war using command prompt.

use command mv abc.zip abc.war

Upvotes: -1

loknath
loknath

Reputation: 1372

You can change the name of the file from .zip to .war using command prompt.

1.Go to the file location (cd filelocation)

  1. Use below command.

    Ren file.zip file.war

Upvotes: 1

Akhi
Akhi

Reputation: 2242

In windows. You can use the command prompt to rename a file.

rename sample.zip sample.war

Upvotes: 7

Kshitij
Kshitij

Reputation: 8634

my guess is you actually didn't renamed it back to war file. In windows, there is an option to Hide extensions for known file types.

If that is checked, you probably just renamed to fileName.war.zip

Steps to fix in Windows XP - http://www.wikihow.com/Disable-Hidden-File-Extensions-in-Windows-XP

Steps to fix in Windows 7/Vista - http://windows.microsoft.com/en-us/windows-vista/show-or-hide-file-name-extensions

Upvotes: 6

Related Questions