Adding classpath in J2ME build.xml

Posted on 2006-04-30
Last Modified: 2008-01-09
I have a build.xml as follows. I wanted to specify dependency on in class path in this file. How do I do that?

<project name="MyMobile" default="j2mepolish">
      <!--define the installation folder of J2ME Polish-->
      <property name="polish.home" location="C:\Tools\J2ME-Polish" />
      <!--define the installation folder of the WTK-->
      <property name="wtk.home" location="C:\S60\Devices\S60_3rd_MIDP_SDK" />
        <property name="nokia.home" location="C:\S60\Devices\S60_3rd_MIDP_SDK" />
      <!-- Definition of the J2ME Polish task:   -->
            <taskdef name="j2mepolish"

      <!-- start the build with J2ME Polish -->
      <target name="j2mepolish">
            <deviceRequirements unless="test">
                  <requirement name="Identifier" value="Nokia/Series60" />
                              <requirement name="JavaPackage" value="nokia-ui,mmapi" />
                                        <requirement name="BitsPerPixel" value="4+" />
                                          <requirement name="JavaPackage" value="mmapi" />
                                          <requirement name="JavaPlatform" value="MIDP/2.0+" />

                        <midlet class="MobileAd" />
                                    value="true" />
                                    value="true" />
                                    value="true" />
                                    value="false" />
                                                value="OK" />
                                                value="Cancel" />
                                                value="Select" />
                                                value="Options" />
      <target name="clean">
            <delete dir="build" />
            <delete dir="dist" />
Question by:dekathari
    1 Comment
    LVL 13

    Accepted Solution

    You'll need to add binaryLibraries="" to the build tag.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
    For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
    This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

    754 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

    17 Experts available now in Live!

    Get 1:1 Help Now