create war fileSOFTWARE: java j2eejar -cvf appname.war * A WAR file is a Web Archive file and is used to package up a java app for deployment to the server. I'm creating this for install as a Building Block on Blackboard. After grabbing a sample Building Block to get the file structure and making coding modifications, you need to create a WAR file of it all before uploading to the server. Here are the commands. First, change directory so you're inside the root level of your project:
Then, use the jar command to create the war file with * (all) argument to grab everything in the current directory. We're naming it "myapp.war":
Extract Existing WAR filesConversely, you can use the following command to extract the war files back out:
MORE INFO: http://web.bvu.edu/faculty/schweller/internetprog/howtoWAR.htm |