Creating war file with jar command is not working properly
java, jetty, war
Solution
"jar" command will not create .class files, it is for creating the package. So you have to compile the source files first, then use the jar command.
Also, you might need to add as parameter(s) the files you want to include, so something like
jar cvf myapp.war *
To add all files.
Problem
Hi all i have used the following command to generate war file from my spring project. ``` D:\projectsample\webContent>jar cvf projectsample.war ``` The war file is generating but when i deploying it using the jettyrunner.jar,its not deploying.I have noticed in the war file that there is no class files are generating inside the WEB-INF\class folder.Can anyone suggest me a solution for this problem.