Showing results for 
Search instead for 
Do you mean 

Supporting the Java ME Platform SDK 3.0 in the Mobile Architect

by on ‎10-23-2009 08:08 AM

The Java ME Platform SDK 3.0 is the new name for the old WTK (Sun Java Wireless Toolkit) used by the Mobile Architect when compiling BlackBerry customizations.


As a quick reminder, the build.xml.template file is a build script used by the Mobile Architect when building BlackBerry customizations.


If you are using Mobile v5.1 or earlier:


Make the following change to the build.xml.template which is located in the \Library\BlackBerry\templates folder under the Mobile Architect install directory:


Find:                 <property name="wtk.home" value="c:\wtk22"/>

Change to:        <property name="wtk.home" value="C:\Java_ME_platform_SDK_3.0"/>


If you are using Mobile 5.5 or above:


Mobile 5.5 introduced support for multiple JDE's and to help facilitate this we created the buildprofiles.xml file which contains build profiles for each JDE version you want to support. The file is stored in the same directory as the build.xml.template (\Library\BlackBerry\templates folder under the Mobile Architect install directory).


Here's a snippet:


    <?xml version="1.0" encoding="utf-8" ?><buildprofiles BLKBERRY="4.2">

        <buildprofile devicetype="BLKBERRY" name="BlackBerry 4.2 Default" version="4.2">

            <property name="path">C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1</property>

            <property name="wtk_home">C:\Java_ME_platform_SDK_3.0</property>




This example shows the build profile for v4.2 of the JDE. Notice the property elements. These elements allow you to override the same property in the build.xml.template during a build. In the snippet, the "path" property will replace the "path" property in the build.xml.template when a client system is built using this 4.2 build profile. Any property in the build.xml.template can be overriden in this way. To support the Java ME Platform SDK 3.0, add a property element to the appropriate build profile and set the name attribute to "wtk_home" and the element content to the SDK 3.0 install path as shown in the snippet. This will override the "wtk_home" property in the build.xml.template.


You are now ready to build your BlackBerry customizations.

Register Read Guidelines Request Partner or Employee Access

What's New in 8.1