Skip to Content
author's profile photo Former Member
Former Member

War file export for Handheld

what are the procedures for exportin war file in eclipse for handheld (pocket pc + creme)

I use java 1.1.8x

Now do I check "compile code" or not

If I do, then do I check "keep generated code..." or not?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2005 at 07:39 AM

    Hi Ezatullah,

    i generate war files using ant in eclipse. You can specify an target in your build.xml for builing the war file. Mine looks like this:

    <target name="build.war">

    <delete file="${dist.dir}/${}.war"/>

    <war warfile="${dist.dir}/${}.war" webxml="${conf.dir}/web.xml">

    <classes dir="${bin.dir}"/>

    <lib dir="${pdalib.dir}"/>

    <zipfileset dir="${web.dir}" prefix="web"/>

    <webinf dir="${conf.dir}">

    <include name="*/"/>

    <exclude name="web.xml"/>




    If you do not know how to create an ANT build file you should search the web.

    In Eclipse under Window->Preferences->Ant you can set properties to run ANT. I guess "build.xml" is set as default, so that u can right click on your created build.xml file and choose run->antbuild. The target packs all classes and other stuff defined in the ${***.dir} variables into the warfile and stores it using the name defined in ${dist.dir} using ${} as name for the war file.

    Its difficult to explain because I do not know how much you know about Ant. Just ask if you have further questions.



    Add a comment
    10|10000 characters needed characters exceeded

    • Where are located your jsp files? They should reside under the folder named "app-root" in your project. For example, let's we have a project named "MyProject". The following folders are important:








      In java resides your .java files. The whole content of the app-root folder (i.e. in this case the jsp folder) will be copied in the .WAR, and later deployed in the MyProject's INSTALLDIR.

      There's nothing else copied in the .WAR, except the .class files and the app-root's content.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.