File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to make application into .war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to make application into .war" Watch "How to make application into .war" New topic
Author

How to make application into .war

arun krishnamurthy
Greenhorn

Joined: Aug 30, 2006
Posts: 6
I hava question how to make an application into .war.
Will you please help me in this issue.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

This forum is for questions about Java application performance: speed, memory usage, etc. I'll move your question to "Java in General (Intermediate)" for you.

Why are you rolling around on the floor, laughing? This question didn't seem funny to me at all.


[Jess in Action][AskingGoodQuestions]
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
jar -cvf name.war .

from the dir where the app starts.


Rahul Bhattacharjee
LinkedIn - Blog
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

.WAR file is a specific directory structure in which the application files are distributed so that the runtime environment will pick up the files on demand.

The runtime environment nothing but container or you can call application server.

The .WAR file follows,

MAIN FOLDER
---
Source,
STATIC CONTENT
WEB-INF/
classes/,
lib/,
web.xml

Place all your source files in SOURCE directory, then

CD MAIN FOLDER
JAVAC -D .\WEB-INF\CLASSES *.JAVA
CD ..
JAR -CVF APP.WAR MAIN FOLDER/

Now the APP.WAR is ready to deploy on any application web container.

the web.xml is compulsory



your




the WEB-INF file
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Originally posted by Srinivas Kalvala:
[QB].WAR file is a specific directory structure in which the application files are distributed so that the runtime environment will pick up the files on demand.

The runtime environment nothing but container or you can call application server.

The .WAR file follows,

MAIN FOLDER
---
Source,
STATIC CONTENT
WEB-INF/
classes/,
lib/,
web.xml

Place all your source files in SOURCE directory, then

CD MAIN FOLDER
JAVAC -D .\WEB-INF\CLASSES SOURCE\*.JAVA
CD ..
JAR -CVF APP.WAR MAIN FOLDER/

Now the APP.WAR is ready to deploy on any application web container.

the web.xml is compulsory
 
wood burning stoves
 
subject: How to make application into .war