与 JAD 文件中的 MIDlet 属性混淆

发布于 2024-08-31 04:54:22 字数 334 浏览 1 评论 0原文

在 JAD 文件中,“MicroEdition-Profile”可以有多个值,以空格分隔,而“MicroEdition-Configuration”只能有一个值。

根据 JTWI 规范,

  1. MIDP 的最低要求是 2.0,因此这给我们只有一种选择(MIDP 2.0)来放入 JAD 文件
  2. CLDC 的最低要求为 1.0,所以这给了我们两种放入 JAD 文件的选择,即: CLDC1.0 和 CLDC2.0

我可以创建一个与 CLDC1.0 和 1.1 兼容的应用程序。为什么 Profile 属性允许有多个值,而 Configuration 属性只允许有一个值?

"MicroEdition-Profile" can have multiple values separated by space in the JAD file, where as "MicroEdtion-Configuration" can have only one value.

According to JTWI specifications,

  1. Minimum requirement for MIDP is 2.0, so this gives us only one option (MIDP 2.0) to put in the JAD file
  2. Minimum requirement for CLDC is 1.0, so this gives us two options to put in the JAD file ie: CLDC1.0 and CLDC2.0

I can create an application which is compatible with CLDC1.0 and 1.1. Why are multiple values allowed for Profile attribute but only one value is allowed for Configuration attribute?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泛泛之交 2024-09-07 04:54:22

MicroEdition-配置指的是系统的最底层部分——JVM等。
MicroEdition-Profile 提供了配置(应用程序生命周期、UI 等)之上的附加软件环境的列表(通常大小为 1)。

有关详细信息,请参阅 当今 Java ME 调查(实际上是 2007 年的,但仍然是一个有用的概述) :

配置,位于底部
Java ME组织栈,定义了一个
基本的最小公分母 Java
运行时环境。这包括
VM以及派生的一组核心类
主要来自 Java SE 平台。
每种配置均适用于
广泛的受限设备系列
具有某种类型的网络
连接性。

在个人资料上:

配置不提供类
用于管理应用程序寿命
循环,用于驱动 UI,用于
维护和更新持久性
设备本地数据,或
安全地访问信息
存储在网络服务器上。反而,
提供了该类型的功能
通过配置文件或通过可选
包。个人资料添加
特定领域的核心类
提供的一组类
配置,适合的类
针对设备的特定用途和
提供缺少的功能
底层配置。

MIDP 是移动设备最常见的配置文件,但还有其他配置文件: IMP - MIDP 的一种无头版本(JSR-195);用于数字电视的 DSTB (JSR-242)。

MicroEdition-Configuration refers to the lowest-level part of the system - the JVM and so on.
MicroEdition-Profile gives a list (often of size one) of the additional software environments on top of the configuration (application lifecycle, UI etc.)

For more info see A Survey of Java ME Today (actually from 2007, but a useful overview still):

A configuration, at the bottom of the
Java ME organization stack, defines a
basic lowest-common-denominator Java
runtime environment. This includes the
VM and a set of core classes derived
primarily from the Java SE platform.
Each configuration is geared for a
broad family of constrained devices
with some type of network
connectivity.

And on profiles:

Configurations do not provide classes
for managing the application life
cycle, for driving the UI, for
maintaining and updating persistent
data locally in the device, or for
accessing securely information that is
stored on a network server. Instead,
that type of functionality is provided
by the profiles or by optional
packages. A profile adds
domain-specific classes to the core
set of classes provided by the
configuration, classes that are geared
toward specific uses of devices and
provide functionality missing from the
underlying configuration.

MIDP is the most common profile for mobiles, but there are others: IMP - a kind-of headless version of MIDP (JSR-195); and DSTB for digital TV (JSR-242).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文