• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

war prob

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use ant.... it has a war task.
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic