Solved

How to create .war file

Posted on 2009-04-06
2
1,934 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now