• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i create war file in unix

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
im working on unix env and i need to create war files for deployment to tomcat
in windows i used to make it with export -> to war file , but now in unix how can it be done ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meir,
A war file is just a jar file with a specific file structure and a different extension. Assuming you have the file structure set up, you can just use the jar command. Alternatively, you can use a build tool like Ant and call its war task.
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using jar and then rename it to war?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP. Moved to a more appropriate forum.
 
sandeeep kv
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
compress (r) gzip � Compresses a file

uncompress (r) gunzip � uncompresses a file

zip and unzip � Packages and compresses files and uncompresses
files

Try these commands
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Meir Yan:
using jar and then rename it to war?


Yes. Have a look at this article: Manually Create a Simple WAR File
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic