i don't know how to generate .war file (days back when i was using eclipse simple Ant-build is used to generate .war file and deploy ) , i don't know how to do without eclipse and Ant-build or Maven, can you tell how to do it,what is the command to do .
i tried jar cvf /home/jayakannan/Desktop/beerV1.war *
Long, long ago when mammals were still scurrying under the feet of the dinosaurs, I used to use DOS batch command files to build WARs. But then Ant and Maven came out and I gave that up. The task of assembling a WAR is just more complicated than it's worth doing batch scripts for, much less typing in commands straight from the command line.
Yes, you can build a WAR using the JAR command. In fact, you can even use the ZIP command, but that just means more work you have to do yourself that something else could do for you. So I do recommend Ant or Maven.
Still, what you're doing is theoretically correct. It will work as long as the working directory you're in is structured like a WAR must be structured.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Tim Holloway wrote:Long, long ago when mammals were still scurrying under the feet of the dinosaurs, I used to use DOS batch command files to build WARs. But then Ant and Maven came out and I gave that up.
Wow, that's nice.
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!