Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make application into .war

 
arun krishnamurthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jar -cvf name.war .

from the dir where the app starts.
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.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
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic