• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

war prob

 
indrajit bose
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any1 plz tell me how to create a war file manually or automatic.am using j2sdkee1.3 deployment tool.am writing the command jar -cvf archivename.war but its saying that i should also mention the files that the archive should contain.
thanx in advance
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ant.... it has a war task.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're almost there, and if you want to manually create a WAR file (provided that you have a directory that you want to WAR up) just change directory to it and type...

Notice the "." at the end of the command, this says include all of the files in the current directory. Alternatively, you can include specific files and directories by simply naming them. Check out the JAR tool documentation (for Windows) or the JAR tool documentation for Solaris/Linux as appropriate.
Once you've done this a few times, as Rick suggested, you'll probably want to check out an automated tool such as Ant.
All the best
Simon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic