Building a phoneME Feature Software Reference Port (MR4)

简介: Building a phoneME Feature Software Reference Port (MR4) The phoneME Feature Software is the Open Source version of Sun Microsystem...

Building a phoneME Feature Software Reference Port (MR4)



The phoneME Feature Software is the Open Source version of Sun Microsystems' commercial implementation, the Sun Java Wireless Client software. The phoneME Feature software is built on top of CLDC, the Open Source version of Sun Microsystems' Connected Limited Device Configuration, HotSpot Implementation.

This document has the following sections:

  * Building phoneME Feature Software on a Windows x86 Build Platform
  * Building phoneME Feature Software Documentation 

For proper building and performance, your system must meet the requirements provided in Before You Begin.

Building phoneME Feature Software on a Windows x86 Build Platform

This section provides basic instructions for building a default phoneME Feature software implementation for the JavaCall porting layer on a Windows x86 target platform.

Setting Variables for a Windows x86 Build Platform

To properly build the phoneME Feature software on a Windows platform, you must set the environment variables shown in TABLE 5-1.

TABLE 5-1Required Windows x86 Build Variables

Name
 

Description

MIDP_OUTPUT_DIR
 

Location where the output from building phoneME Feature is stored. For example, MIDP_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/midp.

PCSL_OUTPUT_DIR
 

Location where the output from building PCSL is stored. Required for phoneME Feature to pick up PCSL libraries. For example, PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl.

CLDC_DIST_DIR
 

Required for building phoneME Feature software. Must point to the location of CLDC software build output. For example, CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist.

TOOLS_DIR
 

Location of tools generated during build process. Required for building phoneME Feature software. For example, TOOLS_DIR=%COMPONENTS_DIR%/tools.

TOOLS_OUTPUT_DIR
 

Defines a directory location for tools-specific output. For example, TOOLS_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/tools

USE_MULTIPLE_ISOLATES
 

Required for phoneME Feature to support multitasking. Must be set to true. If not explicitly set to true, the build defaults to false and phoneME Feature is built without multitasking capability.

Note: If you set USE_MULTIPLE_ISOLATES=true to build phoneME Feature software, you must also set ENABLE_ISOLATES=true to build CLDC, as described in Building a CLDC Reference Port.

JAVACALL_PLATFORM
 

Defines the JavaCall porting layer platform, cpu, and compiler. For example, JAVACALL_PLATFORM=win32_i386_vc.

JAVACALL_OUTPUT_DIR
 

Indicates the location where JavaCall porting layer output is stored. For example, JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall.

USE_VS2005
 

Tells the build system to use Microsoft Visual Studio 2005 as the default compiler. For example, USE_VS2005=true.

USE_ON_DEVICE_DEBUG
 

Supports the use of the emulator binary plugin. For example, USE_ON_DEVICE_DEBUG=true.

USE_JAVA_DEBUGGER
 

Supports the use of the emulator binary plugin. For example, USE_JAVA_DEBUGGER=true.

SDK_ODD_DIR
 

Supports the use of the emulator binary plugin. For example, SDK_ODD_DIR=$COMPONENTS_DIR/sdk/components/jme-remoting.

VM_PROFILES_CONFIG_FILE
 

Supports the use of the emulator binary plugin. For example, VM_PROFILES_CONFIG_FILE=$COMPONENTS_DIR/sdk/harness/runtime-builders/cldc-builder/midp/vm_profiles.config.

Building for a Windows x86 Target Platform

To build the phoneME Feature software for a Windows x86 target platform, take the following steps.

  1. Set the MIDP_OUTPUT_DIR variable, as shown here.

  $ set MIDP_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/midp

  2. Change to the build directory, as shown here.

  $ cd %COMPONENTS_DIR%/midp/build/javacall

  Note: You can skip this step and use the make -C build option. For more information, see Building with the make -C Option.

  3. Run the make command as a single command-line string, as shown here.

  $ make PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist TOOLS_DIR=%COMPONENTS_DIR%/tools TOOLS_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/tools USE_MULTIPLE_ISOLATES=true JAVACALL_PLATFORM=win32_i386_vc JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall USE_VS2005=true USE_ON_DEVICE_DEBUG=true USE_JAVA_DEBUGGER=true SDK_ODD_DIR=$COMPONENTS_DIR/sdk/components/jme-remoting VM_PROFILES_CONFIG_FILE=$COMPONENTS_DIR/sdk/harness/runtime-builders/cldc-builders/midp/vm_profiles.config

  Note: It is possible to include optional packages in your Windows x86 target build. For more information, see Including Optional Packages in Your Build. 

The generated output for Windows x86 target platform is found under %BUILD_OUTPUT_DIR%/midp.

Running phoneME Feature on a Windows x86 Target Platform

Once you build an implementation of phoneME Feature software, you can run a MIDlet using the Wireless Toolkit emulation device. However, before you can do this, you must take a few additional steps.

To prepare your phoneME Feature implementation for running, follow these steps:

  1. Ensure you have emulator binary plugin installed on your machine.

  2. Copy the contents of the /SDK directory (not the directory itself) into the top-level (root) directory of the emulator binary plugin environment. For example, C:/Emulator. 

To start your phoneME Feature implementation:

  1. Change to the emulation root directory.

  2. Remove the folder %USERPROFILE%/javame-sdk-sjwc

  3. Restart the emulator Device Manager. The Device Manager is in the lower right hand system tray. Right click to disply the menu and select Restart. 

For additional information on running in the emulator, see the Sun Java Wireless Client Software Build Guide.

Building phoneME Feature Software Documentation

You can create HTML API documents for phoneME Feature software from porting interfaces. To do this for the phoneME Feature software, use the make docs_html build target.

Generating Javadoc Tool Documentation

Building Javadoc tool documentation is the same for all platforms.

  1. Change to the default build directory for your target platform.

  For example, this could be the Windows x86 target platform, as shown here.

  $ cd %COMPONENTS_DIR%/javacall-com/configuration/phoneMEFeature/win32_emul

  2. Build Javadoc tool HTML documentation.

  $ make docs_html 

Viewing phoneME Feature Software Documents

Use any browser to display the Javadoc output file at the following URL:

  file://%MIDP_OUTPUT_DIR%/doc/javadoc/html/index.html 

目录
相关文章
|
NoSQL 关系型数据库 MySQL
Vgo-适合golang初学者的开源框架
# Vgo Vgo是一款基于Gin的开源服务端框架,集成了Redis、Mysql、JWT及队列等技术栈,适合Golang初学者。项目包括Vgo-Gitee和VgoAdmin-Gitee,可通过克隆仓库并按照安装指南进行部署。其目录结构清晰,涵盖路由、模型、后台接口等功能模块,更多功能持续开发中。
268 5
|
监控 算法 数据挖掘
ERP系统中的生产线排程与调度优化解析
【7月更文挑战第25天】 ERP系统中的生产线排程与调度优化解析
485 6
|
JavaScript Java 测试技术
基于SpringBoot+Vue的高校社团管理系统的详细设计和实现(源码+lw+部署文档+讲解等)
基于SpringBoot+Vue的高校社团管理系统的详细设计和实现(源码+lw+部署文档+讲解等)
225 0
|
机器学习/深度学习 人工智能 算法
人工智能在医学领域的局限性
随着科技发展,人工智能技术在教育领域中的应用已取得较大进展。近年来,人工智能(AI)技术和由其引发的大数据时代自社会的各个层面包括我们的思维、生活方式和工作模式产生了巨大的变革;其与医学的结合给医疗系统带来深远的影响。从互联网到云计算,再到由大数据集合而成的人工智能,不断更新的处理手段使医疗行业也开始尝试新的转变,从传统的人工诊疗、教学模式逐步转变为依据机器学习来获取更高效的信息,并在医学多个领域已有比较广泛的应用。本文将从人工智能在医学领域的优势、当前的进展、应用、局限性和未来方向来进行综述。
728 1
|
安全 开发工具
微信小游戏制作工具中的键盘插件的使用
微信小游戏制作工具中的键盘插件的使用
885 0
|
机器学习/深度学习 自然语言处理 算法
一个中心+三大原则 -- 阿里巴巴小蜜这样做智能对话开发平台
        在阿里巴巴智能服务事业部的X蜂会上,小蜜北京团队的高级算法专家李永彬(水德)分享了小蜜智能对话开发平台的构建,围绕平台来源、设计理念、核心技术、业务落地情况四大维度讲述了一个较为完整的智能任务型对话开发平台的全景。
5312 1
|
存储 数据可视化 搜索推荐
一文读懂快速开发平台
一文读懂快速开发平台
326 0
|
定位技术 索引
ArcGIS制图技巧:边框的选择与制作
ArcGIS制图技巧:边框的选择与制作
660 0
|
数据采集 消息中间件 关系型数据库
数据采集(二)
数据采集(二)
506 0
|
机器学习/深度学习 人工智能 文字识别
合合信息——用智能文字识别技术赋能古彝文原籍数字化
合合信息——用智能文字识别技术赋能古彝文原籍数字化
合合信息——用智能文字识别技术赋能古彝文原籍数字化

热门文章

最新文章