How to create a war file of web application

Hi Techies
How to create a war file of the web application?
And plz tell me the utilities used for it.

To compress a 'abc' web application into a "Web Archive" file named abc.war, follow the steps below:
1> Open a command prompt and cd to the application's dir:
2> Use the java archive command 'jar' to bundle up your application:
jar -cvf abc.war *
3> Move this to any other server and work with it!! :)
-- Abdel Raoof Olakara

Similar Messages

  • How to create the War file

    Can you help me , how to create the war file.
    I am using the tomcat 5.0 server, i have book folder in webapp.
    how i can create the war file? what is command?
    help me

    using jar command u can create a war file
    jar -cmf myweb.war *.*<files to be included in war file>

  • Advantages and disadvantages creation of war file in web application......

    Hi friends.... I'm new to java....
    according to my little knowledge creating a war file is optional,
    but i don't know if we directly deployed web application like servlet application in the web server(ex: webapps in TOMCAT)
    what problems may get if my computer system not in the network and what problems may get if my computer system in the network....i know we must create a war file for appropriate application if the server is in remote place....
    please reply.....thank you

    Isn't it easier to deploy one file than it is to deploy dozens, hundreds, even thousands?

  • How to create a Batch file for java application  ?

    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter. (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

  • How we create a flat file on the application server

    how we create a flat file on the application servere,this file have the header data and corresponding item data also.
    i.e. how we use the AT NEW and ATEND. statement in this file creation.
    pls send me some code related to this.

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>

  • How to create a PAR file in Web Dynpro

    Hi !!
    Could any one tell me how to create a par file of the java application developed in WebDynpro..
    ChandraSekar Maheswaran

    Refer the link
    Webdynpro concepts
    Tamil K

  • How to create a war file of a project

    I have a project, in my project i have used file to read & write data
    from file, i have used Ecllipse to build this project. now how i will
    create war file in Ecllipse & ho i will run it? IS there anyone who can
    help me? Please help me..
    With reagards

    I m using following version of Ecllipse :lomboz-wtp-emf-gef-jem-eclipse-SDK-3.1.2-win32. With this how i will build war file of project? can u give me solution?
    With regards

  • How to create a date range in Web Application Designer

    I am using 3.1 version of Web App Designer.  I need to create a report with date ranges.  I can get one date to work but not two (I need a start date and end Date).  My Query has 0CALMONTH with a variable for Interval.  When I select it as a dropdown (??) in Web App Designer, I only get one date prompt in web app designer.
    Any suggestions??

    Hi Kristen,
    I'm sorry i'm not coming to solve your problem,but for the trouble I have had,and I want to create a date picker in Web Application Designer,so if you have solved the problem ,please email to me? [email protected] ,thx very much!
    best regards
    zegion chan

  • How to create a WAR File for an IDM installation?

    I have a IDM 7.1.1 test instance installed on a server which uses a local mySQL.
    Is there a way I can create war file of the IDM installation? I would like to migrate the IDM to another server.
    I know how to create a IDM war through Netbean; this particulart instance is not hooked to NetBeans.

    i think it should be jar -cf /path/to/warfile/idm.war *Edited by: Amit_Bansal on Sep 30, 2008 9:49 AM

  • How to create a .war file

    Hi Guyz,.............
    how can i make a war file from a project directory
    i had searched the forums but that did not help me.
    i used this command
    C:\My Project\source>jar cvf MyProj.war
    'c' flag requires that input files be specified!
    Usage: jar {ctxu}[vfm0M] [jar-file] [manifest-file] [-C dir] files ...
    -c create new archive
    -t list table of contents for archive
    -x extract named (or all) files from archive
    -u update existing archive
    -v generate verbose output on standard output
    -f specify archive file name
    -m include manifest information from specified manifest file
    -0 store only; use no ZIP compression
    -M do not create a manifest file for the entries
    -i generate index information for the specified jar files
    -C change to the specified directory and include the following file
    If any file is a directory then it is processed recursively.
    The manifest file name and the archive file name needs to be specified
    in the same order the 'm' and 'f' flags are specified.
    Example 1: to archive two class files into an archive called classes.jar:
    jar cvf classes.jar Foo.class Bar.class
    Example 2: use an existing manifest file 'mymanifest' and archive all the
    files in the foo/ directory into 'classes.jar':
    jar cvfm classes.jar mymanifest -C foo/ .
    please help me out guyz

    You are nearly there already and the error message is telling you exactly what is missing from your command.
    jar cvf MyProj.war file1.class file2.class
    or maybe
    jar cvf MyProj.war classes/*.class
    or even
    jar cvf MyProj.war classes/
    All the info is in the output you supplied!

  • How to create a war file from extracted file-system on server?

    On a weblogic I have
    to offer a test environment
    where users can exchange classes in the folders
    of the extracted archieve for faster testing.
    Now I need a command (should be easily to use) where
    you can achieve the following logic
    create war-file host:user:passwort/webapp-folder
    Is there anything? Up to now I havent find someting!
    Nice greetings Starki

    alternatively you could create the required directory structure and use winzip to zip the file .. save the file with .WAR extention .

  • How to create reports from my existing web application on Java/J2EE with Oracle Client 10g as the backend?? Help sought for

    Our company has developed an  Web Application and we are also looking out for the development of reports using Business Objects Exterprise XI Release 2 and for this purporse I do require some help from the forum who can literally show me how to get on and working on creating the reports.

    Thats why I thought I should make the following chain in the keystore, possibly in this order.
    1. My private key (simply generated in the server)
    2. Import Root certificates from NS
    3. Import Trusted certificate issued by NS
    Then when I sign with my private key surely an association will be formed to the trusted authority certificate. The problem I'm having is when I first made my private key I used openSSL as it was only intended for HTTPS. Now I need to create a keystore so I can use jarsigner to sign the jar file, and I can't see how to create a keystore using my existing private key. Surely if I created a new key and self sign, then import the trusted certificate the association will fail, as the private key will not be the same 1 that I used to make the CSR when applying for the trusted certificate.

  • How to create a .ear file from my application ?

    I am using JDeveloper 10g.I made an application called Myapp .Kindly guide me how I will make a .ear file of the application for deployment purpose.

    Right-click your project, choose "New" then deployment profile. You should see "EAR" as a choice. Then, just follow the wizards. When you want to create the EAR, just right-click your newly-created deployment profile and select the EAR option.

Maybe you are looking for

  • PL/SQL in a line chart

    Hello, I am learning to use APEX to build charts on our intranet. I'm getting errors when I try the PL/SQL code below on a line chart (btw I'm a noob in PL). The error description is after the code. Can someone please point out what's wrong with my c

  • IPad 3 charging v e r y slow. What to do??

    I have the new iPad3;, and upgraded to the latest software. It charges v e r y slow, about 5%/hr. Is this a software or hardware issue, and what to do about it? Regards Firak

  • Copy data from mysql to oracle database help?

    Im an sql newb and trying to understand how I can automatically copy data from one dtabase to another systems database on the same server. We have two differnt applications, but both share customer information, but one is on a win server, while the o

  • Apps still in trial with cc photpgrapher plan subscribed, any help?

    Hi all, I bought a photographer plan (PS and LR), after installing my apps are still in trial and asking for a licence code. I deletede all previous installations and prefs, tried the workaround suggested by Adobe (disconnect & reconnct my ID), but d

  • May i use nls_charset12 to convert character set before executeQuery()?

    i got a problem for the db nls character set isn't us7ascii, so while retreiving data from database the data stored in ResultSet is changed to UTF-8 format. thus, my question is - how to convert character set before my executuing the method executeQu