Use the Code Generation Utility to
generate object API code, which allows you to use APIs to develop device applications
for Windows or Windows Mobile devices.
Prerequisites
- Generate and download the ESDMA bundle for you application.
- Run the ESDMA Converter utility to turn your ESDMA into an Unwired Platform package.
- Deploy the package to Unwired Server.
Task- Make sure that your <ESDMA_dir>\META-INF directory contains
these three files:
- afx-esdma.xml
- ds-doe.xml
- sup-db.xml
- From <UnwiredPlatform_InstallDir>\UnwiredPlatform\MobileSDK\ObjectAPI\Utils\bin,
run the codegen.bat utility, specifying the following
parameters:
codegen -cs -client -doe -sqlite
[-output <output_dir>] [-doc] <ESDMA_dir>\META-INF\sup-db.xml
- The -output parameter allows you to
specify an output directory. If you omit this parameter, the output goes
into the <UnwiredPlatform_InstallDir>\UnwiredPlatform\MobileSDK\ObjectAPI\Utils\genfiles
directory, assuming codegen.bat is run from the <UnwiredPlatform_InstallDir>\UnwiredPlatform\MobileSDK\ObjectAPI\Utils\bin
directory.
- The -doc parameter specifies that
documentation is generated for the generated code.
Ignore these
warnings:
log4j:WARN No appenders could be found for logger ...
log4j:WARN Please initialize the log4j system properly.