Solved

How to create .war file

Posted on 2009-04-06
2
1,938 Views
Last Modified: 2013-12-16
I have a CentOS 5.2 server, what program do i need to install in order to create a war file from a folder? what program to i need to install on server and what command will i need to run?
0
Comment
Question by:Jhonn_Sorroza
2 Comments
 
LVL 35

Accepted Solution

by:
torimar earned 250 total points
ID: 24082911
There are a couple of tools in the J2EE SDK and the JDK/J2SE capable of creating .war files (http://java.sun.com/javaee/downloads/index.jsp):
deploytool, packager, ant, and jar.

For more info, check here under "Creating a .WAR file": http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html
0
 
LVL 14

Assisted Solution

by:Deepak Kosaraju
Deepak Kosaraju earned 250 total points
ID: 24083004
I hope following command helps, Java is dependency for this.

Reference Link:
http://www.linuxforums.org/forum/linux-programming-scripting/103940-create-war-file.html

#jar cvf app.war *

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question